如何查看系统内置的shell命令及帮助信息
2014-12-31 12:51
751 查看
1.打开终端,输入help命令可以查看系统默认的shell(通常是bash)的内置的shell命令列表:
2.我们如果对某一个shell命令感兴趣,也可以用help command 来查看具体的命令详情:
3.我们想了解alias命令的用法,可以使用 help alias查看:
[tansheng@localhost ~]$ help GNU bash, version 4.1.2(1)-release (x86_64-redhat-linux-gnu) These shell commands are defined internally. Type `help' to see this list. Type `help name' to find out more about the function `name'. Use `info bash' to find out more about the shell in general. Use `man -k' or `info' to find out more about commands not in this list. A star (*) next to a name means that the command is disabled. job_spec [&] history [-c] [-d offset] or hist> (( expression )) if COMMANDS; then COMMANDS; [ elif C> . filename [arguments] jobs [-lnprs] [jobspec ...] or jobs > : kill [-s sigspec | -n signum | -sigs> [ arg... ] let arg [arg ...] [[ expression ]] local [option] name[=value] ... alias [-p] [name[=value] ... ] logout bg [job_spec ...] mapfile [-n count] [-O origin] [-s c> bind [-lpvsPVS] [-m keymap] [-f filen> popd [-n] [+N | -N] break printf [-v var] format [arguments] builtin [shell-builtin [arg ...]] pushd [-n] [+N | -N | dir] caller [expr] pwd [-LP] case WORD in [PATTERN [| PATTERN]...)> read [-ers] [-a array] [-d delim] [-> cd [-L|-P] [dir] readarray [-n count] [-O origin] [-s> command [-pVv] command [arg ...] readonly [-af] [name[=value] ...] or>
2.我们如果对某一个shell命令感兴趣,也可以用help command 来查看具体的命令详情:
[tansheng@localhost ~]$ help fg fg: fg [job_spec] Move job to the foreground. Place the job identified by JOB_SPEC in the foreground, making it the current job. If JOB_SPEC is not present, the shell's notion of the current job is used. Exit Status: Status of command placed in foreground, or failure if an error occurs. [tansheng@localhost ~]$
3.我们想了解alias命令的用法,可以使用 help alias查看:
[tansheng@localhost ~]$ help alias alias: alias [-p] [name[=value] ... ] Define or display aliases. Without arguments, `alias' prints the list of aliases in the reusable form `alias NAME=VALUE' on standard output. Otherwise, an alias is defined for each NAME whose VALUE is given. A trailing space in VALUE causes the next word to be checked for alias substitution when the alias is expanded. Options: -p Print all defined aliases in a reusable format Exit Status: alias returns true unless a NAME is supplied for which no alias has been defined. [tansheng@localhost ~]$
相关文章推荐
- 【信息采集】IBM AIX系统硬件信息查看命令(shell脚本)
- WinXP下如何通过命令查看系统信息
- Linux如何查看系统当前登录用户信息,linux su命令参数及用法详解(linux切换用户命令)
- 如何查看服务器RAID卡信息的SHELL脚本和命令介绍
- 如何在Linux系统上获取命令的帮助信息,请详细列出,并描述man文档的章节是如何划分的。
- IBM AIX系统硬件信息查看命令(shell脚本)
- 如何在windows系统自带命令查看硬件信息?
- 如何在linux系统上获取命令的帮助信息
- Linux如何查看系统各种信息 (常用命令)
- linux系统上获取命令的帮助信息,man文档的章节是如何划分的
- 如何用帮助系统获取PowerShell可用命令信息
- 如何用帮助系统获取PowerShell可用命令信息
- 如何查看服务器RAID卡信息的SHELL脚本和命令介绍
- 如何查看通过系统命令查看ORA错误信息?
- solaris常用系统命令如何查看日志信息
- Linux查看系统信息的一些命令及查看已安装软件包的shell
- 如何用linux查看系统信息命令
- 温故而知新:linux_shell:linux系统信息查看命令大全
- 如何在linux系统上获取命令的帮助信息,请详细列出,并描述man文档的章节是如何划分的
- linux系统上获取命令的帮助信息,man文档的章节是如何划分的