微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

RHCE 033 unit12

locate:

locate search

ps:fastly speed

updatedb every day 0:00 update files

find /etc -name

find slowly but accurate

find -name sNow.png

find -iname sNow.png case-insentment

find / -name '*.txt'

exaple: find /home -user joe -group joe

find -user joe -not -group joe

find -user joe -o -user jane -o equal -or

find -not /( -user joe -o -user jane /) neither joe or jane

echo /cost: $5.00

find / -user joe -o -uid 500

find -perm 755 matches jf mode is exactly 755

/ find -perm +222 matches if anyone can write

find -perm -222 matches if everyone can write

find -perm -002

find -size +10M modifiers are aviliable ps : k M G but not t or T

dd if=/dev/zero of=1.txt bs=1M count=10

ls -l list time must be mtime

ctime when file data or Metadata last changed

find /tmp -ctime +10 10day

-atime when file was last read

-mtime when file fata last changed

-ctime when file data or Metadata lste changed

find /etc -amin -60 -60 durthing 60minute

find /var -size +1M |wc -l

find -size +100M -ok mv { } /tmp/largefiles/ /; { } equal {}

find /etc/ -name *.conf -ok /bin/cp { } /tmp/{ }.orig /;

find /etc/ -name '*.conf' -exec cp { } /tmp/ /;

find -name '*.conf' -exec cp { } { } .orig /;

find ~ -perm -002 -exec chmod 0-w { } /;

find /home -type d -ls

find -not -perm +111 -name '*.sh' -ok chmod 755 {} /;

Which command will search your entire filesystem for a file named South.png?

find /all -name "South.png"
find / -file "South.png"
find / -name "South.png" -type f 2>/dev/null
find /all -file "South.png"

C

原文地址:https://www.jb51.cc/javaschema/287364.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐