LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-07-2003, 01:59 PM   #1
mylo2003
Member
 
Registered: Jul 2003
Posts: 113

Rep: Reputation: 15
Find command??


Hi guys

What switches do I use if I want to find a file but I don't know what dir it is in?
 
Old 08-07-2003, 02:08 PM   #2
contrasutra
LQ Guru
 
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445

Rep: Reputation: 47
Code:
man find
 
Old 08-07-2003, 02:26 PM   #3
lfur
Member
 
Registered: Jul 2003
Location: Slovenia
Distribution: Slackware & FreeBSD
Posts: 209

Rep: Reputation: 30
I'm in the mood!

Code:
find / -name fileName > found.whatever 2> /dev/null
to find it as a normal user. If as root, cut the 2> /dev/null
It will put everything found in the found.wahtever file in your home directory ... if you are there ofcourse. If not, use ...> $HOME/~found.whatever.

And yes, use man pages, they are your best friend!

Enjoy
 
Old 08-07-2003, 02:27 PM   #4
mylo2003
Member
 
Registered: Jul 2003
Posts: 113

Original Poster
Rep: Reputation: 15
kewl.
Thx as always!
 
  


Reply


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Find/grep command to find matching files, print filename, then print matching content stefanlasiewski Programming 9 06-30-2016 05:30 PM
find command jch02140 Linux - Newbie 2 07-19-2005 12:21 AM
The find command Gins Linux - General 32 06-12-2005 02:20 PM
What is the FIND command Mic Q SUSE / openSUSE 1 04-07-2005 09:08 AM
find command... ultima Linux - Newbie 2 05-20-2004 04:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:58 PM.

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