Linux: Copy/Rename/Move/Remove Directory – 复制/重命名/移动/删除目录

1. Copy 复制:

[root@ip-10-* webapps]# cp -r sourceDir/ /targetDir/ 
//将被复制到targetDir文件夹下 The SourceDir will be found under "targetDir"

2. Rename 重命名:

[root@ip-10-* 20100102update]# mv sourceDir/ newName

3. Move 移动:

mv Source.zip targetDir/

4. 移除整个目录:

[root@ip-10*webapps]# rm -rf Athena_Java/

This entry was posted in Linux and tagged , , . Bookmark the permalink.

One Response to Linux: Copy/Rename/Move/Remove Directory – 复制/重命名/移动/删除目录

  1. Firm says:

    这个实现的方法比较多

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>