1. 找出所有所有者是 ira 的文件,并把他们拷贝到/root/findresults 目录。
mkdir /root/findresults
find / -type f -user ira -exec cp -a {} /root/findresults/ \;
2. 把/usr/share/dict/words文件中所有包含rato字符串的行找到,并将这些行按原始文件中顺序存放到/root/wordlist中并不能包含空行
cat /usr/share/dict/words | grep rato > /root/wordlist
随时随地看视频