linux终端重命名文件夹命令,Linux移动(重命名)目录文件命令-mv | IT运维网

将tmp下的目录1移动到目录/tmp/qwe下

[root@localhost tmp]# ll /tmp/qwe/

total 0

[root@localhost tmp]#

[root@localhost tmp]# mv /tmp/1/ /tmp/qwe/

[root@localhost tmp]# tree /tmp/qwe/

/tmp/qwe/

└── 1

└── 2

├── 3

│   └── 4

│   └── 5

├── test1.txt

└── test.txt

5 directories, 2 files

[root@localhost tmp]#

将tmp下的目录qwe移动到目录/tmp/z下并重命名

[root@localhost tmp]# ll /tmp/z/

total 0

drwxr-xr-x 3 root root 14 Nov 28 2017 x

[root@localhost tmp]# mv /tmp/qwe/ /tmp/z/poi

[root@localhost tmp]# tree /tmp/

/tmp/

├── rty

├── systemd-private-67f03791c3f34110b44cc9fe6c96389d-vmtoolsd.service-Nfell2

│   └── tmp

├── yum_save_tx.2017-11-26.20-55.3OHjxh.yumtx

└── z

├── poi

│   └── 1

│   └── 2

│   ├── 3

│   │   └── 4

│   │   └── 5

│   ├── test1.txt

│   └── test.txt

└── x

└── c

└── v

└── b

14 directories, 3 files

[root@localhost tmp]#

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值