LINUX 常用命令:复制、移动、删除

1:删除单个文件testFileCp.txt

  rm -f testFileCp.txt

2:删除subtestcp文件夹下的所有文件

  rm -fr /test/subtestcp

3:移动/test/subtest下的单个文件testFile.txt到/test/subtestcp下

  mv -f /test/subtest/testFile.txt  /test/subtestcp/

4:移动整个文件夹subtest及其下面的所有文件到subtestcp下

  mv -f /test/subtest   /test/subtestcp/

posted @ 2020-09-25 07:36  simplelifezp  阅读(388)  评论(0)    收藏  举报