[Linux]文件操作

cp ./temp/1.txt ./temp2/2.txt:复制文件

cp 1.txt ./temp2: 复制1.txt到./temp2目录下

cp -r temp1 /home: 把temp1整个复制到/home目录下

mv 1.txt ./temp: 把1.txt移动到temp下

mv 1.txt 2.txt: 改名

rm:删除文件

chmod 777: 改变文件权限

Leave a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.