1, alias
To see all the aliases defined in the environment, use the alias command without argu- ments.
2, type
3, info
1,type
2, help
help cd
3, whatis
Display One-line Manual Page Descriptions
4, info
4, 重定向
旧版shell
ls -l /bin/usr > ls-output.txt 2>&1
新版shell
ls -l /bin/usr &> ls-output.txt
use the single notation &> to redirect both standard output and stan- dard error to the file ls-output.txt
追加
ls -l /bin/usr &>> ls-output.txt
ls -l /bin/usr 2> /dev/null 不需要的时候,可以使用 /dev/null
5, 利用cat合并多个文件
cat movie.mpeg.0* > movie.mpeg
Since wildcards always expand in sorted order, the arguments will be arranged in the cor- rect order.
6, wc
[me@linuxbox ~]$ wc ls-output.txt
7902 64566 503634 ls-output.txt
In this case, it prints out three numbers: lines, words, and bytes contained in ls-out- put.txt.
7, tee
tee – Read from Stdin and Output to Stdout and Files
ls /usr/bin | tee ls.txt | grep zip