- 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
推薦閱讀
- Dependency Injection in .NET Core 2.0
- 精通軟件性能測試與LoadRunner實戰(第2版)
- Production Ready OpenStack:Recipes for Successful Environments
- Mastering Ubuntu Server
- Building a Recommendation Engine with Scala
- Learning Neo4j 3.x(Second Edition)
- Visual Basic程序設計上機實驗教程
- 匯編語言編程基礎:基于LoongArch
- Rust游戲開發實戰
- HTML+CSS+JavaScript編程入門指南(全2冊)
- 從零開始學Android開發
- 小程序從0到1:微信全棧工程師一本通
- DB2SQL性能調優秘笈
- Leaflet.js Essentials
- Developing Multi:Platform Apps with Visual Studio Code