Thursday 21 February 2013

Find files

$ find /dir/to/search -name "fileName"

$ find   -name "fileName*"
this will search in the current directory and its sub-directories . It turned out that on my RedHat I had to use " " instead of single quotes ' '

$ find /dir/to/search -type d  -name "dirName"
search for a directory with name "dirName"

No comments:

Post a Comment