Friday, May 26, 2006

Find Commands

FIND Command ... Using

find / -type f -name Print --> Find the particular files whole in ur box

find . -type f -name "**" print ---> Find a file pattern

find / -type f -name core -exec /bin/rm-f{}\' --> Delete all cores in the system

find . -name file -exec grep -l {} \; --> Find all files with word them

find . -type f -ctime +30 -print -> Find the files longer modify longer one month

find . -local ---> Don't search in nfs mounted

find .-follow --> Follow the line while searching

find / path -size 1000000c -print

find ...2>/drv/null --> Run the find permisson denied[work in bash,ks]

find / -type d -print egrep '.*/(catmanman)$ -> Find all manual page directories

find / -type d -perm -022 -print -> Find all directories with written permisson

No comments:

Post a Comment

Powered By Blogger