Searching for a file

Using find

The find command can be used in deepOfix to search for a file or a set of files which match some search criteria. One way of using it is to look for files whose names match a pattern.

root@hostname:/var/qmail/log# find -name 'qmail*' -print
./qmail
./qmail-imapd
./qmail-pop3d
./qmail-qmqpd
./qmail-smtpd
./qmail-pop3d-ssl
./qmail-pbsdbd
./qmail-imapd-ssl
root@hostname:/var/qmail/log#

We have just seen how to search for all files starting with qmail in the /var/qmail/log directory and its subdirectories.

 
help/command-line/searching-files.txt · Last modified: 2009/07/24 02:48 by gaurav     Back to top