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

Categories: Linux; Tagged with: ; @ September 2nd, 2010 17:38

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/



// Proudly powered by Apache, PHP, MySQL, WordPress, Bootstrap, etc,.