[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: [LI] FIND file



On Sat, 20 Nov 1999 paradigm@xxxxxxxx wrote:

> Under Linux tty interface, how to find a file like DOS command "dir/s"
> or "find"?


find [dir-to-start-with] -name "filemask" -print

example:

find /usr/bin -name "*play*" -print

will start searching in the /usr/bin directory and below it for files that
have "play" in them, and would find things like

/usr/bin/cdplay
/usr/bin/esdplay
/usr/bin/cdplayer_applet
/usr/bin/kcmdisplay
/usr/bin/kplayaudio
/usr/bin/playmidi
/usr/bin/splaymidi
/usr/bin/play
/usr/bin/soxplay

Run "man find" for more details - "find" is a seriously powerful tool.

Atul


--------------------------------------------------------------------
The Linux India Mailing List Archives are now available.  Please search
the archive at http://lists.linux-india.org/ before posting your question
to avoid repetition and save bandwidth.