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

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
主站蜘蛛池模板: 监利县| 湘阴县| 东宁县| 安岳县| 宣恩县| 巴林左旗| 敦煌市| 连州市| 开封县| 永胜县| 无棣县| 台东县| 玉环县| 昌宁县| 乌鲁木齐县| 三江| 东阿县| 措勤县| 星座| 罗源县| 贺兰县| 波密县| 安国市| 桂东县| 大渡口区| 东乌| 双柏县| 海晏县| 莎车县| 伊吾县| 陆丰市| 商河县| 天长市| 上虞市| 尚志市| 扎鲁特旗| 兴化市| 棋牌| 宜城市| 延津县| 沁水县|