1. 程式人生 > >linux 幫助命令:man、whatis、apropos、--help

linux 幫助命令:man、whatis、apropos、--help

配置文件 路徑 har rop lin 列表 hat 信息 linu

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


apropos services

apropos profile

linux 幫助命令:man、whatis、apropos、--help