1.打开终端,输入help命令可以查看系统默认的shell(通常是bash)的内置的shell命令列表:

[tansheng@localhost ~]$ help
GNU bash, version 4.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] [n] 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 [n]
bg [job_spec ...] mapfile [-n count] [-O origin] [-s c>
bind [-lpvsPVS] [-m keymap] [-f filen> popd [-n] [+N | -N]
break [n] 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 ~]$

最新文章

  1. phpstudy 局域网访问
  2. android studio 导入有so 文件的项目是,程序崩溃的可能原因
  3. 6-01T-SQL中的运算符
  4. 10条现代EQ技术基础贴士(转)
  5. ERP系统上传文档信息下载(十八)
  6. windows服务器记录3389远程桌面IP策略
  7. cordova navigator app 对象
  8. RTL 与 technology schematic的区别,包含概念与实例
  9. A除以B_2
  10. js简单排序
  11. ArcPad 10 的安装部署
  12. Golang 基于libpcap/winpcap的底层网络编程——gopacket安装
  13. GoWorld – 用Golang写一个分布式可扩展、可热更的游戏服务器
  14. 201521123011 《java程序设计》 第9周学习总结
  15. CentOS 7 增加磁盘分区挂载(lvm)
  16. 用原生js+canvas实现五子棋
  17. UI组件--element-ui--Table组件自定义合计行
  18. mysql修改当前用户的密码
  19. Centos ssh 限制ip访问
  20. find查找时排除目录及文件

热门文章

  1. WP8_定位新页面中listbox的某项
  2. 二级路由器设置为何要关闭DHCP服务
  3. FTP操作
  4. 遍历List/Map的时候删除成员遇到的奇怪问题
  5. shell 截取指定的字符串
  6. HTML表单的问题
  7. PeopleCode 处理压缩文件
  8. firefox 中碰到的一个小坑
  9. PhpStrom 配置Xdebug
  10. slidingmenu