- Learn Linux Quickly
- Ahmed AlKabary
- 88字
- 2021-06-11 18:43:49
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:~$
推薦閱讀
- UI設計基礎培訓教程
- Django+Vue.js商城項目實戰
- C語言程序設計教程(第2版)
- Servlet/JSP深入詳解
- Python零基礎快樂學習之旅(K12實戰訓練)
- 征服RIA
- 零基礎學MQL:基于EA的自動化交易編程
- JS全書:JavaScript Web前端開發指南
- ASP.NET 3.5程序設計與項目實踐
- QTP自動化測試進階
- Mastering ServiceNow(Second Edition)
- Python數據結構與算法(視頻教學版)
- Programming with CodeIgniterMVC
- Oracle GoldenGate 12c Implementer's Guide
- 從0到1:HTML5 Canvas動畫開發