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

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:~$
主站蜘蛛池模板: 蒲城县| 翁源县| 金乡县| 庆元县| 泰安市| 枞阳县| 大田县| 泊头市| 收藏| 化隆| 天门市| 伊金霍洛旗| 金坛市| 类乌齐县| 理塘县| 灵丘县| 茂名市| 西贡区| 江北区| 青浦区| 扎赉特旗| 乐至县| 抚州市| 苏尼特左旗| 昭平县| 呼图壁县| 普陀区| 西峡县| 通江县| 防城港市| 个旧市| 华容县| 工布江达县| 泾源县| 论坛| 安溪县| 庄浪县| 盐池县| 京山县| 扶沟县| 福鼎市|