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

  • 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
主站蜘蛛池模板: 北票市| 农安县| 什邡市| 海林市| 宜春市| 仁化县| 台山市| 丰镇市| 藁城市| 昭平县| 奉新县| 台东县| 九龙县| 济阳县| 威宁| 遂宁市| 旅游| 田东县| 拉萨市| 会同县| 丹阳市| 成安县| 象山县| 门源| 开原市| 老河口市| 客服| 巴彦县| 昆山市| 龙陵县| 佛学| 盘山县| 双城市| 湄潭县| 定结县| 武山县| 弥渡县| 于田县| 唐山市| 元朗区| 兴义市|