1.查内存
查根目录:du -h
查当前目录各文件占用内存情况:du -h *
2.查文档,LOG
more info.log
cat info.log |grep 关键字
过滤关键字命令:grep -v 关键字 more info.log
3.进程相关
查进程:ps -ef|grep 关键字
查进程占用内存:ps aux --sort -rss | head -17
4.创建文件夹和文件
创建文件夹 test:mkdir test
创建文件 test.txt:touch test.txt
删除文件夹:rm -rf test
删除文件:rm -f test.txt