Thursday, September 29, 2011

Linux Command - How to find a file


find -name test.cpp
This will searh test.cpp in the current folder and its sub directories.

find . -name foo\*bar
This will search from the current directory down for foo*bar (that is, any filename that begins with foo and ends with bar).