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