1、cat /etc/passwd | egrep "^root|^fedora|^user1"| cut -d":" -f1,7
2、egrep -o "[^[:space:]]+\(\)" /etc/rc.d/init.d/functions
3、echo "/etc/rc.d/init.d/functions" | egrep -o '[^/]+/?$' | egrep -o '[^/]+'
4、echo /etc/rc.d/ | egrep -o '[^/]+/?$' | egrep -o '[^/]+'
5、ifconfig | egrep -o "[1-9][0-9]?|1[0-9]{2}|2[0-4][0-9]|25[0-5]"
ifconfig | egrep -o "(\<([0,1]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])\>\.){3}\<([0,1]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])\>"
6、egrep "[[:alnum:]]+_?[[:alnum:]]+@[[:alnum:]]+\.[[:alpha:]]+\.?[[:alpha:]]+?"
7、find /var -user root -a -group mail -exec ls -ld {} \;
8、find / -nogroup -o -nouser
find / \( -nouser -o -nogroup \) -atime -3
9、find /etc -type f -perm -222
10、find /etc -size +1M -type f
11、find /etc/init.d/ -perm -113
12、find /usr -not \( -user root -o -user bin -o -user hadoop \) -type f
13、find /etc -not -perm /222
14、find /etc/ -mtime -7 -not \( -user root -o -user hadoop \) -type f
原创文章,作者:未闻花名,如若转载,请注明出处:http://www.178linux.com/45676
评论列表(1条)
下次最好能把题目也写上