您的位置:首页 > 运维架构 > Shell

shell学习记录---5

2012-11-28 19:14 260 查看
......................................................................................................................................................................................................



























[root@localhost Exercise]# nohup find / -nouser -print >/info.txt &




[root@localhost Exercise]# find ./ -mtime -5 -print


5天内;

[root@localhost Exercise]# find ./ -mtime +3 -print


3天前改变;



{}和 \之间记得空格;



[root@localhost Exercise]# chmod 777 hello.txt
[root@localhost Exercise]# find ./ -perm -7 -print
./hello.txt
[root@localhost Exercise]# find ./ -perm -7 -print |xargs chmod o-w
[root@localhost Exercise]# find ./ -perm -7 -print
[root@localhost Exercise]# ls -l hello.txt
-rwxrwxr-x 1 root root 20 Nov 28 11:53 hello.txt
[root@localhost Exercise]#










^[^d]不是d的目录;

^[^dlp]不是d ,l,p的目录;



500--599的文件.



IP地址;



多少行.







































内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: