ls –al vim-test |more 将vim-test的内容一步步列出来
echo $path | cut-c 5- 将path5个字符后的内容输出
echo $path | cut-d ‘:’ -f 1 将path以:分割,并输出第一部分
last | grep –v‘root’ 将没有root的输出
cat test.config |sort –t ‘:’ –k 3 将test这个文件以第3部分排序
last | cut –d ‘ ’-f 1 | uniq –c 重复的数据仅一个显示,并计数
cat test.config |wc 列出行数、多少数字、字符数
双向重导向
last | teelast.list 显示登陆信息,将ls其导入last.list
ls | tee –alast.list 显示文件信息,累加到last.list
last | tr [a-z] [A-Z] last中的所有小写转换为大写
cat test02.config | tr –d ‘d’ 讲test02中所有‘d’字符删除
man col > col.man 将man转化为纯文本文件
paste test.txt test02.tx 将这两个文件放在一起
split -b 40 test05.txt spl 将test05.txt分成以40字节为一个文件
命名历史:
alias rm=’rm-i’ 输入rm, 相当于输入rm –i
alias 显示命令别名
history 曾下达过的命令
!55 运行第55的命令