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

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:~$
主站蜘蛛池模板: 马公市| 拜泉县| 永和县| 凤翔县| 乡城县| 万州区| 海林市| 永城市| 济阳县| 山东| 中山市| 吴桥县| 黄平县| 金平| 亳州市| 罗江县| 民和| 禹城市| 新竹市| 宁化县| 西华县| 连江县| 昆山市| 东莞市| 儋州市| 昌都县| 安西县| 新竹市| 天气| 陇川县| 宜都市| 邓州市| 临安市| 安远县| 农安县| 东港市| 青龙| 西乌珠穆沁旗| 汕头市| 建湖县| 开鲁县|