LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 10-02-2005, 11:16 PM   #1
golpemortal
Member
 
Registered: Sep 2003
Posts: 156

Rep: Reputation: 30
help me understanding linux


hello guys and thanks in advance ...

in Windows all programs are installed in c:\ program files

but where does linux install all programs so i can look at them?

can some give a site where they lay out this information comparing the files structure from windows point of view to linux...


as nebee this will be helpful

thanks all

Last edited by golpemortal; 10-02-2005 at 11:18 PM.
 
Old 10-02-2005, 11:48 PM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
As an FC (rpm-based distro) user, one way to look at your installed programs is by querying the rpm database.

Try the command
Code:
rpm -qa | less
(you will need to run it as root).

This will show you a list of all your installed programs that rpm is aware of. If a particular package in the list interests you, you can get more information with
Code:
rpm -qi package_name_here
When querying packages with -qi, you can leave off version information in the name. So, for example, instead of using the command
Code:
rpm -qi vim-6.3-7.1
you can get by using
Code:
rpm -qi vim
This is probably a lot more comprehensive than anything you will find in Windows's program files.
 
Old 10-02-2005, 11:51 PM   #3
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
To answer your original question, many installed binary files live in /usr/bin. I don't know that poking around in that directory will be very useful though.
 
Old 10-02-2005, 11:51 PM   #4
golpemortal
Member
 
Registered: Sep 2003
Posts: 156

Original Poster
Rep: Reputation: 30
thanks guys for the promptly reply.....
 
Old 10-03-2005, 01:57 AM   #5
isd2301
Member
 
Registered: Mar 2005
Location: Chula Vista, CA, USA
Distribution: Ubuntu, Fedora
Posts: 41

Rep: Reputation: 15
To add a little more info. Other executable application (program) locations are: /bin for general applications, /sbin and /usr/sbin for administrative system applications and /user/X11R6/bin for X Window based applications as well as the aforementioned /usr/bin for user installed applications. The type of application and where it is located is not 100% guaranteed. You can also do a whereis command to usually find its location like this: whereis gimp. On my system the resulting return is: gimp: /usr/bin/gimp /etc/gimp /usr/lib/gimp /usr/share/gimp /usr/share/man/man1/gimp.1.gz, where /usr/bin/gimp is the executable and the other locations are support scripts, libraries, links, manuals, etc..
 
Old 10-03-2005, 02:19 AM   #6
isd2301
Member
 
Registered: Mar 2005
Location: Chula Vista, CA, USA
Distribution: Ubuntu, Fedora
Posts: 41

Rep: Reputation: 15
By the way, I forgot to mention one other common place a binary executable can be located and that is: /usr/local/bin
 
Old 10-03-2005, 02:34 AM   #7
aysiu
Senior Member
 
Registered: May 2005
Distribution: Ubuntu with IceWM
Posts: 1,775

Rep: Reputation: 86
In both Windows and Linux, it usually doesn't matter where the binaries or executables are for the programs. If the program is properly installed, you can run it from the Run command (in both Windows and Linux) by just typing the name of the application. For example, in both Windows and Linux, if I type firefox into the Run dialogue, Firefox starts up. I don't have to specify a path (/usr/bin/firefox or C:\Program Files\Mozilla\Firefox.exe).
 
Old 10-03-2005, 09:25 PM   #8
golpemortal
Member
 
Registered: Sep 2003
Posts: 156

Original Poster
Rep: Reputation: 30
wonderful guys..... really happy for the comments it really help me out......



thanks guys...........
 
  


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
link dies intermittently-seemingly at random- between win<->linux not linux<->linux?? takahaya Linux - Networking 10 03-09-2007 10:37 PM
triple boot linux/linux/linux No Windows involved toastermaker Linux - Newbie 12 03-02-2006 10:40 PM
Redhat (rhel v2.1) bootup problem with linux (linux vs linux-up) namgor Linux - Software 2 06-24-2004 02:49 PM

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

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