1:删掉.cmd文件
rm -r ./*.cmd
2:全局搜索带"example"的jar包
find / -name "*.example*.jar"
3:搜索一个文件中的指定文字
cat **.sh |grep ***
4:查看系统内存使用情况
[rachel@bigdata-senior02 hadoop]$ free -m
total used free shared buffers cached
Mem: 927 773 154 0 4 74
-/+ buffers/cache: 694 233
Swap: 4095 151 3944
5:查询一个文件的行数
cat 000000_0 |wc -l
6:查询一个文件的行数、字数、字节数
cat 000000_0 |wc
7:追加内容到文件中
echo "hello rachel" >> jepson.log
8:权限部分
-rw-r--r--. 1 rachel rachel 53 Oct 17 18:19 00