发布于 2016-10-10 14:46:50 | 123 次阅读 | 评论: 0 | 来源: 网络整理

所有的Unix命令来与一些可选的和强制性的选择。忘记这些命令的完整语法,这是很常见。

因为没有人能记得每一个UNIX命令和选项,一直提供在线帮助,因为在Unix 早期的时候。

Unix的版本的帮助文件,被称为手册页。如果你知道任何命令的名字,但你不知道如何使用它,那么手册页来帮助你。

语法

下面是一个简单的命令来获得系统工作,而任何Unix命令的细节:


$man command

例子:

现在,你能想象的任何命令,你想要得到的帮助。假设你想知道关于pwd ,那么你只需要使用下面的命令:


$man pwd

上面的命令将打开一个帮助你会给你pwd命令的完整信息。亲自试一试在你的命令提示符下,以获得更多的细节

你可以得到完整的细节上man命令本身使用下面的命令:


$man man

手册页部分:

手册页一般分为部分,一般的man page作者偏好变化。下面是一些较常见的部分:

部分 描述
NAME Name of the command
SYNOPSIS General usage parameters of the command.
DESCRIPTION Generally describes of the command and what it does
OPTIONS Describes all the arguments or options to the command
SEE ALSO Lists other commands that are directly related to the command in the man page or closely resembling its functionality.
BUGS Explains any known issues or bugs that exist with the command or its output
EXAMPLES Common usage examples that give the reader an idea of how the command can be used.
AUTHORS The author of the man page/command.

最后,我要说的是手册页是一个重要的研究资源和第一途径,当你需要在Unix系统信息的命令或文件。

有用的Shell命令:

现在你知道如何着手,链接后会给你一个最重要和最频繁使用的Unix Shell命令列表。

如果你不知道如何使用的任何命令,然后使用手册页获取有关命令的完整细节。

这里是清单 shell - 有用的命令

最新网友评论  共有(0)条评论 发布评论 返回顶部

Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务