Shell01

history //查看历史,最多1000条
!!//上一条命令
!555//执行第555条命令
!vi//命令历史中从下到上最近以vi开头的命令
ls ! //! 为上一条命令的最后一个参数
$!//以后讲

Tab 可以补全文件路径或者命令 按两下Tab

alias a=’b’ unalias a//起别名

通配符 * [12] ?

重定向 > >> < 2> 2>>
echo > filename //清空filename
cat < 1.txt //反向重定向
mail -s “zhuti” [email protected] < 1.txt
ls lishiming 2> error.log

你可能感兴趣的:(shell,shell)