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

相关文章

迭代器模式(Iterator)迭代器模式(Iterator)[Cursor]意图...
高性能IO模型浅析服务器端编程经常需要构造高性能的IO模型,...
策略模式(Strategy)策略模式(Strategy)[Policy]意图:定...
访问者模式(Visitor)访问者模式(Visitor)意图:表示一个...
命令模式(Command)命令模式(Command)[Action/Transactio...
生成器模式(Builder)生成器模式(Builder)意图:将一个对...