Powered by Blogger.

Friday, January 29, 2010

Searching of Files

Faster method to search for almost anything under a Linux platform.

alias l='ls -l --color=auto'page" = "Make a quick listing of directories"

ls -lrt = "List files by date"

find -name '*.[ch]' | xargs grep -E 'expr' "Search 'expr' in the current directory and below"

find -type f ! -perm -444 = "Find files not readable by all"

locate -r 'file[^/]*\.txt' = "Search cached index for names"

0 comments

Post a Comment