Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 07-13-2001, 11:35 AM   #1
Registered: Jun 2000
Location: Upstate New York
Distribution: Ubuntu
Posts: 158

Rep: Reputation: 30
Unhappy How do you search for...

How do you search for a file from the command prompt?

Old 07-13-2001, 11:58 AM   #2
Registered: Mar 2001
Location: Manchester UK
Distribution: Mainly Fedora
Posts: 496

Rep: Reputation: 30

whereis x

Certainly works for prog's
Old 07-13-2001, 12:07 PM   #3
Registered: Jun 2001
Location: Grapevine, Texas
Distribution: Ubuntu 14.04, CentOS 7
Posts: 102

Rep: Reputation: 15
Talking Search

try this....
find named [filename]
Old 07-13-2001, 12:17 PM   #4
Senior Member
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
I'd use
find / -name fileName
using 'whereis' will only find files that are in your path, however have the time this is what you want to do anyway!


Old 07-13-2001, 01:45 PM   #5
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
I like this:

as root type 'updatedb' ( I have mine cron'd to go every couple of hours)

then as a user you can type 'locate filename'

Old 07-13-2001, 04:30 PM   #6
Senior Member
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
To search for programs you what they do but can't remember their name, run (as root) makewhatis.
Now the computer make a database containing descriptions for froms it finds.
Try whatis netscape or apropos mail.
Checkout man whatis and man apropos for more info.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
search default: search post title only slackie1000 LQ Suggestions & Feedback 4 03-10-2005 07:50 AM
LQ Search reddazz LQ Suggestions & Feedback 6 01-16-2005 01:19 AM
Quick VIM question (unhighlighting search terms after search) lrt2003 Linux - Newbie 5 05-08-2004 05:21 PM
How to 'apt-cache search' & 'apt-file search' by distribution? davidas Debian 3 04-19-2004 01:56 PM
Better search yadavankur LQ Suggestions & Feedback 4 11-20-2002 01:56 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:28 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration