标签:文件操作 find 允许 gre pwd unix find grep zip命令 权限管理
ls -la /etcls pwdcd mkdir rmdir cat more less head tail cp rm mv find grep tar






[test@linux test]$ cp test1.txt test2.txt [test@linux test]$ cp test3.txt /tmp (目录)[test@linux test]$ cp –r test1(目录) test2(目录)
删除某个文件:
[test@linux test]$ rm myfiles(文件名)
删除当前目录下的所有文件:
[test@linux test]$ rm *
递归删除某个目录(包含该目录下所有文件及子目录):
[test@linux test]$ rm -r myfolder(目录名)
强迫删除所有后缀名为txt文件:
[test@linux test]$ rm –f *.txt
删除当前目录下的所有文件:
[test@linux test]$ rm –i * 
-(删除文件时会询问,可按Y或N键表示允许或拒绝删除文件)



[root@linux test]# tar -cvf test.tar *[root@linux test]# tar -czvf test.tar.gz *[root@linux ljr]# tar -tf test.tar[root@linux test]# tar -xvf test.tar [root@linux test]# tar -xzvf foo.tar.gz标签:文件操作 find 允许 gre pwd unix find grep zip命令 权限管理
原文地址:https://www.cnblogs.com/DengSchoo/p/12636085.html