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

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
主站蜘蛛池模板: 波密县| 阿勒泰市| 含山县| 陵水| 阿拉善右旗| 泸西县| 会理县| 夹江县| 花莲县| 镇坪县| 仲巴县| 康定县| 略阳县| 高尔夫| 元阳县| 宁德市| 天镇县| 增城市| 梅州市| 通化市| 土默特左旗| 岳阳市| 呼玛县| 丹东市| 军事| 西林县| 怀柔区| 婺源县| 贵南县| 虞城县| 怀安县| 元谋县| 于都县| 万荣县| 商城县| 钦州市| 湟源县| 旅游| 建宁县| 昭平县| 南雄市|