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

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:~$
主站蜘蛛池模板: 共和县| 湖北省| 于田县| 张家界市| 吉隆县| 敦化市| 南平市| 韶山市| 仁布县| 来宾市| 宁明县| 芒康县| 达州市| 松潘县| 博乐市| 四子王旗| 北流市| 兴城市| 洪洞县| 潞西市| 绥化市| 景泰县| 太保市| 阿拉善盟| 会东县| 屏南县| 横山县| 神木县| 泗阳县| 内江市| 澄迈县| 建始县| 梁山县| 略阳县| 龙里县| 宁都县| 津市市| 石阡县| 昭平县| 慈利县| 津南区|