- Learn Linux Quickly
- Ahmed AlKabary
- 95字
- 2021-06-11 18:43:48
Moving multiple files
You can also move multiple files the same way you can copy multiple files. For example, you can move the three files apple.txt, banana.txt, and carrot.txt from /tmp to /home/elliot/d1 as follows:
elliot@ubuntu-linux:/tmp$ mv apple.txt banana.txt carrot.txt /home/elliot/d1
elliot@ubuntu-linux:/tmp$ ls
cats2.txt cats.txt cities copycats.txt d1 d2 d3
elliot@ubuntu-linux:/tmp$ cd /home/elliot/d1
elliot@ubuntu-linux:~/d1$ ls
apple.txt banana.txt carrot.txt
elliot@ubuntu-linux:~/d1$
As you can see, the three files apple.txt, banana.txt, and carrot.txt are no longer located in /tmp as they all moved to /home/elliot/d1. In general, the mv command follows the syntax:
mv source_file(s) destination
推薦閱讀
- Instant Node Package Manager
- Mastering Entity Framework Core 2.0
- LaTeX Cookbook
- 程序員數學:用Python學透線性代數和微積分
- Java技術手冊(原書第7版)
- Java EE 7 Development with NetBeans 8
- 從Excel到Python:用Python輕松處理Excel數據(第2版)
- Instant Ext.NET Application Development
- 圖數據庫實戰
- 21天學通C++(第5版)
- Spring+Spring MVC+MyBatis從零開始學
- 代替VBA!用Python輕松實現Excel編程
- IoT Projects with Bluetooth Low Energy
- Qt 4開發實踐
- 程序員的成長課