LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 03-14-2007, 07:00 AM   #1
vasco-t
LQ Newbie
 
Registered: Feb 2007
Location: Switzerland
Posts: 21

Rep: Reputation: 15
How do I search for files on multiple directory levels?


When I use the File Browser Search function to search for a file(s) I want it to search on all lower levels to my current directory but it seems that this doesn't work as it only displays file(s) located on the current level.
Is there an option that I am missing?

Thanks

Last edited by vasco-t; 03-14-2007 at 07:18 AM.
 
Old 03-14-2007, 08:55 AM   #2
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
You can try the find command.
 
Old 03-14-2007, 09:44 AM   #3
vasco-t
LQ Newbie
 
Registered: Feb 2007
Location: Switzerland
Posts: 21

Original Poster
Rep: Reputation: 15
I believe the find command is used from the command line in whatever shell I am using.

I am interested in getting my MS Windows users to try and hopefully convert to a user friendly Linux system such as Ubuntu and, therefore, they would throw up their arms in horror if they were expected to run command-line commands.

For this reason I am investigating the use of the NAUTILUS FILE BROWSER as a user friendly way of searching for files which is why I thought that the SEARCH feature of that browser would search through all lower levels.

Cheers.
 
Old 03-14-2007, 01:21 PM   #4
jerril
Member
 
Registered: Nov 2005
Location: Ontario, Canada
Distribution: Linux Mint
Posts: 116

Rep: Reputation: 16
I'm using Ubuntu 6.10. I'm getting mixed behavior:

From the Home directory, it descends into sub-directories. If I'm in a sub-directory it doesn't. Quite odd, because it is very slow, and it would be nice to narrow down the directory.

I am currently searching for a file from the top level of my NTFS drive, there is a file in My Documents that it should match. The toes on the icon show the search engine is busy, and my HD light is busy. Very slow, but it found the file.

OK I got it... I can tell it to do a recursive search:
  • Start the search at the Home directory.
  • Click on the big Plus Sign on the right hand corner.
  • For the new criteria, change the pull-down item from "File Type" to "Location".
  • Choose the subdirectory you want to search from.
  • Do the search.

It did the search from the sub-directory I specified. The file was in lower in the hierarchy and it found it.

It would make it easier to start the recursive search from the current working directory.

Good Luck
jer
 
Old 03-15-2007, 05:34 AM   #5
vasco-t
LQ Newbie
 
Registered: Feb 2007
Location: Switzerland
Posts: 21

Original Poster
Rep: Reputation: 15
Hmm...

As a test I tried the same thing searching for a file named menu.lst which I know to be in /boot/grub. I made the assumption that I did not know where the file was and so started in my home directory. I clicked the plus sign and the Location. This gave me the choice of File System, Floppy Drive Floppy1 and ...other.

As I was assuming no knowledge of the file's location I selected File System. I hit Reload and got no results. So I selected ...other then selected /boot then hit reload again.

This time it found menu.lst but when I changed the view to show details it didn't display which subdirectory that it found it in!

This seems like a fairly major limitation in the Nautilus file browser; users want to find files quickly and easily together with path information. Th method offered by Nautilus is slow and cumbersome.

Cheers.
 
Old 03-15-2007, 03:51 PM   #6
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
Files that are seen only by root may not be searchable.
 
  


Reply

Tags
browser, file, nautilus


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
Copy files from multiple directories into one directory MadRabbit Linux - Newbie 8 02-07-2014 07:56 PM
divide a directory into multiple archive files with par ddaas Linux - General 1 02-26-2005 01:52 PM
symlink multiple files to new directory with new extension jmanjohn61 Linux - General 1 01-06-2005 12:55 PM
gcc multiple optimization levels ? Ikebo Programming 2 07-11-2004 11:26 PM
How do I decompress and desarchive multiple .tar.gz files to a single directory? Baldorg Linux - Software 7 11-27-2003 12:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

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