- 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:~$
推薦閱讀
- C語言程序設計實踐教程(第2版)
- DevOps for Networking
- Python程序設計(第3版)
- Java Web及其框架技術
- x86匯編語言:從實模式到保護模式(第2版)
- Linux命令行與shell腳本編程大全(第4版)
- Elasticsearch Server(Third Edition)
- 碼上行動:用ChatGPT學會Python編程
- HTML5 APP開發從入門到精通(微課精編版)
- 響應式架構:消息模式Actor實現與Scala、Akka應用集成
- Python 3快速入門與實戰
- Managing Windows Servers with Chef
- Practical Responsive Typography
- Mastering Python for Data Science
- Apache Cassandra Essentials