DESCRIPTION List information about the FILEs (the current directoryby default). Sort entries alphabetically ifnoneof -cftuvSUX nor --sort is specified.
Mandatory arguments tolong options are mandatory forshort options too.
-a, --all donot ignore entries starting with .
-A, --almost-all donot list implied . and ..
--author with -l, print the author ofeachfile
-b, --escape print C-style escapes for nongraphic characters
--block-size=SIZE scale sizes by SIZE before printing them; e.g., '--block-size=M' prints sizes in units of1,048,576 bytes; see SIZE format below
-B, --ignore-backups Manual page ls(1) line1 (press h for help or q to quit)
此时可以通过空格键或者回车键来向后翻屏或者翻页,可以使用b或者k向前查看。
查看关键词时可以使用:
/关键词 向后查找 n:下一个
?关键词 向前查找 N:前一个
可以通过q来退出。
ls后面还有一个(1),详细的解释可以参考《Linux 安装 man 帮助程序》
类似于whatis命令
man有个参数为-f,就是whatis的功能,比如:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
$ man -f lscd file cat more less ls (1) - list directory contents ls (1p) - list directory contents cd (1) - bash built-in commands, see bash(1) cd (1p) - change the working directory cd (n) - Change working directory file (1) - determine file type file (1p) - determine file type file (n) - Manipulate file names and attributes cat (1) - concatenate files and print on the standard output cat (1p) - concatenate and print files more (1) - file perusal filter for crt viewing more (1p) - display files on a page-by-page basis less (1) - opposite of more less (3pm) - perl pragma to request less of something
与whatis命令完全一致
类似于apropos命令
man有个参数为-k,就是apropos的功能,比如:
1 2 3 4 5 6 7 8 9 10 11
$ man -k who at.allow (5) - determine who can submit jobs via at or batch at.deny (5) - determine who can submit jobs via at or batch btrfs-filesystem (8) - command group of btrfs that usually work on the whole filesystem docker-trust-signer (1) - Manage entities who can sign Docker images ipsec_newhostkey (8) - generate a new raw RSA authentication key for a host ipsec_showhostkey (8) - show host's authentication key w (1) - Show who is logged on and what they are doing. who (1) - show who is logged on who (1p) - display who is on the system whoami (1) - print effective userid