- 论坛徽章:
- 0
|
man,help,info是linux系统中寻求命令帮助的命令。在linux系统里,shell命令的学习至关重要,但是其种类个数之繁多,将其所有用法都记住是不可能的,而man,help,info这三个命令解决这些问题。
下面举个例子来说明他的用法:(以日常中最常用的命令“ls”为例)
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键,他是用来补全命令的!! |
|