shell学习记录---5

来源:互联网 发布:hdfs java api jar包 编辑:程序博客网 时间:2024/05/01 22:25

......................................................................................................................................................................................................

























[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地址;


多少行.