1. 创建文件目录
mkdir
2. 创建文件
vi [filename]
eg: vi test.txt
3.移动文件
mv source destination
eg: mv test.txt /study
重命名文件
mv test.txt hello.txt
4. 展示当前目录下所有文件
ls
展示包含隐藏文件
ls -a
5.仅删除文件空目录
rm [dirName]
删除文件目录以及目录下文件
rm -rf [dirName]
6. 在文件中查找某内容
grep 'hello' test.txt //在test.txt中查找hello字符串
7. | 管道命令
命令1 | 命令2 //把命令1的结果交给命令2处理
eg: ls -l /test/ | more