Shell命令的操作基础

1.1Shell命令的一般格式

命令名称【选项】 【参数】
eg:[[email protected] ~]$ ls -la
Shell命令的操作基础
1.2在线帮助命令
[[email protected] ~]$ man
Shell命令的操作基础
1.3 Shell的命令补齐
[[email protected] ~]$ ifconfig
Shell命令的操作基础
1.4Shell的历史命令
若执行以前历史命令列表的某一个命令,则执行“!n",n为历史命令列表中的编号。
eg:[[email protected] jialing]# !9
Shell命令的操作基础
1.5Shell的重定向
[[email protected] ~]$ ls
[[email protected] ~]$ ls>test
[[email protected] ~]$ cat test
(把当前目录清单信息写入test文件中)
Shell命令的操作基础
1.6Shell的管道操作
[[email protected] ~]$ cal
[[email protected] ~]$ cal|wc

Shell命令的操作基础