grep -E '^(root|fedora|user1)\>' /etc/passwd | awk -F ':' '{print $7}'
grep -E '[_[:alnum:]]+\(\)' /etc/rc.d/init.d/functions
echo /etc/passwd | grep -E -o "[^/]+/?$"
echo /etc/passwd | grep -E -o "/[[:alpha:]]*/"
ifconfig | grep -E -o "\<([1-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\>"
ifconfig | grep -E -o '([0-9]{1,2}|1[0-9][0-9]|2[0-5][0-5])\.([0-9]{1,2}|1[0-9][0-9]|2[0-5][0-5])\.([0-9]{1,2}|1[0-9][0-9]|2[0-5][0-5])\.([0-9]{1,2}|1[0-9][0-9]|2[0-5][0-5])'
"\<[a-zA-Z0-9_-]*@[A-Za-z0-9_-]*\.[a-zA-Z_-]*$\>"
find /var -user root -a -group mail
find / -nouser -o -nogroup -ls
find / -nouser -a -nogroup -a -atime +3 -ls
find /etc -perm 222 -type f -exec ls -lh {} \;
find /etc -size +1M -type f -exec ls -lh {} \;
find /etc -size +1M -type f |xargs ls -lh
find /etc/init.d/ -perm /113 -type f -ls
find /usr -not \( -user root -o -user bin -o -user hadoop \) -exec ls -ld {} \;
find /etc/ -not -perm /222 -type f -exec ls -lh {} \;
find /etc/ -mtime -7 -a -not \( -user root -o -user hadoop \) -exec ls -ldh {} \;
原创文章,作者:Leexide,如若转载,请注明出处:http://www.178linux.com/53321