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

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
主站蜘蛛池模板: 通山县| 道孚县| 方城县| 屏东县| 遂溪县| 榆林市| 汾西县| 宁海县| 泸溪县| 水城县| 玉屏| 涞源县| 肃南| 大港区| 买车| 合水县| 平顺县| 红河县| 东兴市| 扶沟县| 嘉鱼县| 泰兴市| 建昌县| 泰和县| 沾益县| 南阳市| 泉州市| 焉耆| 罗城| 黄陵县| 德州市| 阿克苏市| 山丹县| 武穴市| 山西省| 富民县| 赣州市| 亚东县| 手游| 若尔盖县| 阿拉善盟|