LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 02-18-2010, 06:03 AM   #1
bald-top
LQ Newbie
 
Registered: Jan 2010
Posts: 12

Rep: Reputation: 0
Search


I have downloaded a couple of files but haven't a clue where they have been downloaded to on my computer. Would someone tell me how i can search for these files via a terminal please. Thanks
 
Old 02-18-2010, 06:06 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
you can use find
Code:
find /home/your_username -name filename
BTW, you can look in the preferences from your browser where files are downloaded.

Last edited by repo; 02-18-2010 at 06:10 AM.
 
Old 02-18-2010, 07:16 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Almost always, they go in ~/Desktop or ~/Downloads

With the "find" command, if you are not sure of the exact filename, use a string which you are sure is part of it. e.g.: Suppose the file is something about firefox (or Firefox), you could search like so:
Code:
find ~ -name "*irefox*"
I'm using "~" to signify your HOME directory, and searching for any filename containing the string "irefox".

I've learned the hard way to always use quotes whenever the search string includes wildcards.
 
Old 02-18-2010, 08:22 AM   #4
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 787
Blog Entries: 6

Rep: Reputation: 75
i suggest you use locate since you forgot the place where you put
and i assumed you also forgot the correct filename

what you have to do is install mlocate and run updatedb once
after that you can use like this $ locate myfil
this will give you result with any file content word myfil eg myfiles.bla bla


 
Old 02-18-2010, 09:08 AM   #5
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
i suggest you use locate since you forgot the place where you put
and i assumed you also forgot the correct filename
You need to run updatedb, every time a new file is added to the system, in order to find it.
The find command will be faster.
 
Old 02-18-2010, 03:24 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
have a look in /tmp
or if using gnome
/home/"your user name" /Downloads
 
  


Reply



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
Search tools (Affinity, Tracker Search Tool, etc.) not working - don't find any files Adamantus Linux - Newbie 1 03-29-2009 11:21 PM
possible search crash.../home/httpd/linuxquestions/questions/search.php aus9 LQ Suggestions & Feedback 3 09-06-2008 07:27 PM
Can you make search ...search a string in a link....a url...a web address aus9 LQ Suggestions & Feedback 4 04-16-2008 09:37 AM
search default: search post title only slackie1000 LQ Suggestions & Feedback 4 03-10-2005 07:50 AM
Quick VIM question (unhighlighting search terms after search) lrt2003 Linux - Newbie 5 05-08-2004 05:21 PM

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

All times are GMT -5. The time now is 09:25 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