LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 12-18-2006, 03:29 PM   #1
cder
LQ Newbie
 
Registered: Dec 2006
Posts: 6

Rep: Reputation: 0
Where are the files located?


Hi,

Where are the files such as Text Editors stored in Linux? I am using Fedora 5 and I am trying to use the command to run certain files.

Thanks.
 
Old 12-18-2006, 03:46 PM   #2
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
most executable binaries are stored in /bin /sbin (intended to be run by super user) /usr/bin etc.

the structure takes a bit of getting used to, but once you get it, it's simple. Check my sig for a guide on the different directories.

there are certain commands that can aid you too

Code:
whereis <command>
will tell you where it is (providing it's in the path, which can be seen with echo $PATH)

Code:
find / -name "<file>"
will search / for files named as specified
 
Old 12-18-2006, 03:50 PM   #3
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 162Reputation: 162
EDIT: ethics has covered all you need. The following are just some more commands for locating files:

It varies. For example on my system, there's /opt/kde/bin/kate and /usr/bin/vim. Since the programs you're looking for are executable and probably on your path, you can type (for example) which vim to see where it's located.

You can also use slocate, for example slocate vim will list the files with vim in the filename. You could also use a regular expression, slocate -r vim$ will return all of the files with names ending in vim.

Last edited by gilead; 12-18-2006 at 03:52 PM.
 
Old 12-18-2006, 08:39 PM   #4
cder
LQ Newbie
 
Registered: Dec 2006
Posts: 6

Original Poster
Rep: Reputation: 0
Steve,

I tried to use slocate but got:

bash: slocate: command not found
 
Old 12-18-2006, 08:55 PM   #5
cder
LQ Newbie
 
Registered: Dec 2006
Posts: 6

Original Poster
Rep: Reputation: 0
These are what I did and got:

[root@localhost oracle]# whereis gcalctool
gcalctool: /usr/bin/gcalctool /usr/share/man/man1/gcalctool.1.gz

I am wondering what the second line means. It looks like two results in the single line seperated by a space. The first one "/usr/bin/gcalctool" of course would means the file name, or command? I could use this as a command to paunch the calculator.

What does the second part mean?
"/usr/share/man/man1/gcalctool.1.gz"

What is the extension of .gz?
 
Old 12-19-2006, 12:05 AM   #6
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
The second one is the manual page (on the commandline, use man gcalctool).

'gz' Is the extension for a gzipped file.
 
Old 12-19-2006, 12:50 PM   #7
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 162Reputation: 162
Quote:
Originally Posted by cder
bash: slocate: command not found
Try locate instead of slocate, although it looks like the other methods are finding the commands anyway.
 
  


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
Where are gnome configuration files located? afaiq Linux - Software 0 06-29-2005 09:23 AM
Where is kernel header files located? Oh Cisco Debian 1 10-22-2004 06:11 AM
C Header Files. Where are they located?? RoaCh Of DisCor Linux - Software 1 08-09-2004 12:16 PM
where are header files located? Anubis Programming 2 07-04-2004 03:12 AM
where are the various log files located? pdmackenzie Linux - Newbie 1 09-15-2003 05:31 PM


All times are GMT -5. The time now is 11:41 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration