LinuxQuestions.org
Visit Jeremy's Blog.
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 05-02-2005, 07:31 PM   #1
j_carmona
Member
 
Registered: Apr 2005
Distribution: Mandrake 10.1
Posts: 35

Rep: Reputation: 15
Finding a specific file


If for example I download a programme (filename.tar.gz), if I double-click on it the file opens and you have a zillion files now in front of you (I use Mandrake 10.1 and sorry I can't remember the name of the apps that open it--I am not at home right now). How do you find a specific file in that list, for example the install.txt file.

Hope I have made myself clear
Many thanks

JC

Last edited by j_carmona; 05-02-2005 at 07:37 PM.
 
Old 05-02-2005, 07:40 PM   #2
ahh
Member
 
Registered: May 2004
Location: UK
Distribution: Gentoo
Posts: 293

Rep: Reputation: 31
Presumably the file are in alphabetical order?
 
Old 05-02-2005, 07:42 PM   #3
j_carmona
Member
 
Registered: Apr 2005
Distribution: Mandrake 10.1
Posts: 35

Original Poster
Rep: Reputation: 15
Yes but they start with their path, and there is no way to arrange by type.
JC
 
Old 05-02-2005, 07:48 PM   #4
PenguinsAreGood
LQ Newbie
 
Registered: Jul 2004
Location: USA
Distribution: FC6
Posts: 9

Rep: Reputation: 0
Gnome-
Not familiar so if you're using ask someone else

KDE-
open konqueror ( the little home icon ) and select tools from the menu bar and find file.

command line-
%find . -name install.txt it will start with the current working directory unless specified as: %find / . -name install.txt will search entire system.

in both cases wildcards are acceptable ie install*

hope this helps
 
Old 05-02-2005, 07:52 PM   #5
j_carmona
Member
 
Registered: Apr 2005
Distribution: Mandrake 10.1
Posts: 35

Original Poster
Rep: Reputation: 15
Thanks PenguinsAreGood, I will try tomorrow once I get home.

JC
 
Old 05-02-2005, 07:54 PM   #6
ahh
Member
 
Registered: May 2004
Location: UK
Distribution: Gentoo
Posts: 293

Rep: Reputation: 31
Ok, I suggest you use "File Roller" (a gnome app) or Ark (a KDE app). If your using Manrake, I guess your using KDE, so this is for Ark:-

File -> Open: select your tar.gz file

At the top of Ark there is a search bar, type the file name in there, if it exists it will be displayed.

You can then left click on it to get a context menu which will allow you to view it or extract or open it etc.
 
Old 05-02-2005, 08:01 PM   #7
j_carmona
Member
 
Registered: Apr 2005
Distribution: Mandrake 10.1
Posts: 35

Original Poster
Rep: Reputation: 15
That's it ahh, it is Ark I use at home. But like PenguinsAreGood suggested can you use the * to do your search, as I don't know the exact name of the file?

JC
 
Old 05-02-2005, 08:13 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Open a shell ...
tar tvzf /<path>/<to>/filename.tar.gz | grep <searchterm>



Cheers,
Tink
 
Old 05-02-2005, 08:16 PM   #9
j_carmona
Member
 
Registered: Apr 2005
Distribution: Mandrake 10.1
Posts: 35

Original Poster
Rep: Reputation: 15
Thanks Tinkster, I gather that

<path> is the path before the file's name
<to> ???? what is that

Thanks
JC
 
Old 05-02-2005, 08:20 PM   #10
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Just a way of expressing that I don't know where (or
how deep) in your directory structure the actuall tar-file
lies ... :)


Cheers,
Tink

Last edited by Tinkster; 05-02-2005 at 08:45 PM.
 
Old 05-02-2005, 08:35 PM   #11
j_carmona
Member
 
Registered: Apr 2005
Distribution: Mandrake 10.1
Posts: 35

Original Poster
Rep: Reputation: 15
gotcha. Thanks

JC
 
Old 05-02-2005, 08:36 PM   #12
ahh
Member
 
Registered: May 2004
Location: UK
Distribution: Gentoo
Posts: 293

Rep: Reputation: 31
Quote:
Originally posted by j_carmona
That's it ahh, it is Ark I use at home. But like PenguinsAreGood suggested can you use the * to do your search, as I don't know the exact name of the file?

JC
Not exactly, but something similar.

When you type in the search bar, once you have typed two letters, the file list will only show the files containing letters you've typed.

e.g. Type "in" and only files containing "in" will show. Add an "s" and only files containing "ins" will show. These would include "insurance" and "collins" if they happened to be the names of files in the archive.

If you have a rough idea of the filename it should get you there.

EDIT: BTW, this is with Ark 2.4.0, can't guarantee it's the same if you have an earlier version

EDIT 2: My mistake, you don't have to type two letters, it works as soon as you type the first letter.

Last edited by ahh; 05-02-2005 at 08:41 PM.
 
Old 05-02-2005, 08:42 PM   #13
j_carmona
Member
 
Registered: Apr 2005
Distribution: Mandrake 10.1
Posts: 35

Original Poster
Rep: Reputation: 15
Thanks ahh. Will check tomorow.

JC
 
  


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
How to limit the size of a specific file ericthyred Linux - Software 1 04-15-2004 12:13 PM
how to cp filestructure for specific file pattern mizuki Linux - Newbie 5 05-24-2003 03:58 PM
How do I find a specific file? Itzac Linux - Newbie 6 02-05-2003 07:52 AM
Help finding specific RH kernel... WeNdeL Linux - Newbie 3 12-06-2002 12:30 PM
Need help finding a specific font nixdisciple Linux - General 0 07-07-2002 08:38 AM


All times are GMT -5. The time now is 08:53 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration