- 論壇徽章:
- 0
|
man,help,info是linux系統(tǒng)中尋求命令幫助的命令。在linux系統(tǒng)里,shell命令的學(xué)習(xí)至關(guān)重要,但是其種類個數(shù)之繁多,將其所有用法都記住是不可能的,而man,help,info這三個命令解決這些問題。
下面舉個例子來說明他的用法:(以日常中最常用的命令“l(fā)s”為例)
man:
$man ls
LS(1) User Commands LS(1)
NAME
ls - list directory contents
SYNOPSIS
ls [OPTION]... [FILE]...
DESCRIPTION
List information about the FILEs (the current directory by default).
Sort entries alphabetically if none of -cftuvSUX nor --sort is speci‐fied.
Mandatory arguments to long options are mandatory for short optionstoo.
-a, --all
do not ignore entries starting with .
-A, --almost-all
do not list implied . and ..
--author
Manual page ls(1) line 1 (press h for help or q to quit)
help:
$ ls --help
info
$ info ls
還有一個重要的鍵,tab鍵,他是用來補(bǔ)全命令的! |
|