man /usr/bin/man
man [命令或配置文件]
获取帮助信息
man ls
/-l
man date
/-d
man services //不需要添加绝对路径/etc/services
NAME(名称)
services - Internet 网络服务列表
每行描述了一个服务,其格式如下:
服务名 端口/协议 [别名 ...]
more services
man passwd
whereis passwd
结果:
passwd: /usr/bin/passwd /etc/passwd /usr/share/man/man5/passwd.5.gz /usr/share/man/man1/passwd.1.gz
有一个命令叫password,还有一个配置文件也叫passwd;man5、man1,1表示命令的帮助,5表示配置文件的帮助
man 5 passwd
whatis ls
whatis ifconfig
ls --help
扫描二维码关注公众号,回复:
2852257 查看本文章
apropos services
apropos profile