Saturday, March 21, 2009

FIND command

find -iname filename.ext = find a file by name
find . = lists all files and subdirectories in the current directory
find . -size +200M = finds files more than 200M in size
find . -size +200M -ls = more details
find . -name *.txt -size +40K = finds .txt file names of more than 40 k in size
find /usr/share/docs | xargs grep -l 'keyword' = finds files that contain the keyword from documents
finger = log in details

No comments:

Post a Comment