官术网_书友最值得收藏!

Removing files

You can use the rm command to remove (delete) files. For example, if you want to remove the file dogs.txt, you can run the rm dogs.txt command:

elliot@ubuntu-linux:~$ ls
apple.txt banana.txt carrot.txt dogs.txt Desktop dir1 small
elliot@ubuntu-linux:~$ rm dogs.txt
elliot@ubuntu-linux:~$ ls
apple.txt banana.txt carrot.txt Desktop dir1 small

You can also remove multiple files at once. For example, you can remove the three files apple.txt, banana.txt, and carrot.txt by running the rm apple.txt banana.txt carrot.txt command:

elliot@ubuntu-linux:~$ rm apple.txt banana.txt carrot.txt
elliot@ubuntu-linux:~$ ls
Desktop dir1 small
elliot@ubuntu-linux:~$
主站蜘蛛池模板: 格尔木市| 丰镇市| 资阳市| 井陉县| 绥化市| 乌鲁木齐市| 响水县| 定安县| 栖霞市| 武穴市| 临江市| 旺苍县| 绍兴市| 渝中区| 西城区| 杭锦后旗| 水富县| 崇文区| 西吉县| 肇庆市| 民勤县| 四平市| 淮南市| 南通市| 常熟市| 乌兰察布市| 黔江区| 青浦区| 神池县| 连南| 呈贡县| 福安市| 河北区| 甘洛县| 襄垣县| 南岸区| 韩城市| 乐安县| 东辽县| 安阳县| 满城县|