CentOS指令语法结构详解

2020-01-30 16:21:15于海丽

[tyang3@localhost Desktop]$ ls --help 

Usage: ls [OPTION]... [FILE]... 

List information about the FILEs (the current directory by default). 

Sort entries alphabetically if none of -cftuvSUX nor --sort.

Mandatory arguments to long options are mandatory for short options too. 

  -a, --all                  do not ignore entries starting with . 

  -A, --almost-all           do not list implied . and .. 

      --author               with -l, print the author of each file

3. Man [<chapter>] <command>:查看命令描述或手册页(Manual)

[tyang3@localhost Desktop]$ man ls

image

在man命令下底行模式:输入 

/<text>   查找关键字 

n/N         下一个/上一个 

q             离开 

man -k <keyword>  列出包含keyword关键字的手册页

4. Info <command>:查看命令更详细的说明文件

[tyang3@localhost ~]$ info ls

image

注:info查看的是比man更详细的说明,也就是把man的页再划分为更小的章节,同时这个命令还可以链接到相似主题

info命令底行模式: 

pageUp.pageDown            翻页 

Tab                                     跳往下一个链接(有*的地方) 

Enter                                  进入链接 

n/p/u                                  跳往下一个(上一个)小节,上一层章节 

s[<text>]                            查找关键字 

q                                         离开