2011年4月27日星期三

find the full for a specific file name

find the full for a specific file name in a folder,  this may be simple and useful.

# list the full path for a file name "mao_test.txt", in the current folder (path)
find -name 'mao_test.txt'

# list the full path for a file name "mao_test.txt", in the root folder (the computer)
find / -type f -name 'mao_test.txt'

没有评论:

发表评论