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
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |