命令名:rm
功能:删除某一个文件或者目录
eg:
renjg@renjg-HP-Compaq-Pro--MT:~/WorkSpace$ ls
BM3 gf k8s minicom_download minicom_upload python share.txt small_tools
docker-engine_1.12.6-~ubuntu-xenial_amd64.deb go kubernetes安装教程.txt minicom.log Pro_test share ().txt shell_pro Xml Tools 2.4.9.2 x86 Unicode.zip
renjg@renjg-HP-Compaq-Pro--MT:~/WorkSpace$
renjg@renjg-HP-Compaq-Pro--MT:~/WorkSpace$
renjg@renjg-HP-Compaq-Pro--MT:~/WorkSpace$ rm minicom.log
renjg@renjg-HP-Compaq-Pro--MT:~/WorkSpace$ ls
BM3 gf k8s minicom_download Pro_test share ().txt shell_pro Xml Tools 2.4.9.2 x86 Unicode.zip
docker-engine_1.12.6-~ubuntu-xenial_amd64.deb go kubernetes安装教程.txt minicom_upload python share.txt small_tools
renjg@renjg-HP-Compaq-Pro--MT:~/WorkSpace$
如果是删除某一个目录,就加-R参数,rm -R dir_name