LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 11-21-2005, 06:28 AM   #1
ic_torres
Member
 
Registered: Nov 2005
Location: ABAP
Distribution: slackware 12.0, Vector Linux STD 6.0 and 5.8, ZenWalk 4.6.1, OpenBSD 3.9
Posts: 389

Rep: Reputation: 34
hmmm /bin or /usr ? ? ?


guys here is a question that confuses me a bit...

whre do the programs such as gxine xine , kde are installed? is it in /bin or /usr? m talking bout the installed programs not the packages...

need help newbie hre
 
Old 11-21-2005, 06:31 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
The executables themselves are usually in /usr/bin or /bin. For things like gxine, they'll be in /usr/bin. Not too sure what goes in /bin (and I can't check cos I'm not at my Linux box right now).
 
Old 11-21-2005, 06:32 AM   #3
Nobber
Member
 
Registered: Jun 2002
Location: Nova Scotia
Distribution: Debian (home), Kubuntu 7.04 (work)
Posts: 265

Rep: Reputation: 30
Most executables go in /usr/bin; KDE programs go in /opt/kde/usr/bin.
 
Old 11-21-2005, 06:40 AM   #4
maginotjr
Member
 
Registered: Aug 2004
Location: BR - Floripa
Distribution: Ubuntu 9.10 - 2.6.x.x
Posts: 661

Rep: Reputation: 34
there a convention about where to put the files in linux...

things installed by user are used to go to /usr/bin and /usr/local/bin
things installed by the superuser go to /usr/sbin and /usr/local/sbin
things that comes by default like cp, ls, fdisk, mkreiserfs and so on goes to /bin and /sbin

libraries and folder of the programs (like Program Files in windows) are going to /usr/lib /usr/local/lib /usr and /lib (this is most comum to things of the system itself)

so you have gxine binary in /usr/bin (it can be in /usr/local/bin or even you find some links pointing to /usr/X11R6/bin) and it files in /usr/lib/gxine or some commum files in /usr/share/gxine
well the true is that is a real confusing thing sometimes the best whey is using locate, whereis or which commands to find whetever you want...

kde and openoffice and someother app install all packages under /opt (opt comes from optional) and this is something that they do because they think its better this way...

[ ]'s
 
Old 11-21-2005, 05:44 PM   #5
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 1,805

Rep: Reputation: 233Reputation: 233Reputation: 233
Quote:
Originally posted by maginotjr
things installed by user are used to go to /usr/bin and /usr/local/bin
things installed by the superuser go to /usr/sbin and /usr/local/sbin
things that comes by default like cp, ls, fdisk, mkreiserfs and so on goes to /bin and /sbin
According to the FHS:
...
/bin contains commands that may be used by both the system administrator and by
users, but which are required when no other filesystems are mounted (e.g. in
single user mode). It may also contain commands which are used indirectly by
scripts.
...
Utilities used for system administration (and other root-only commands) are
stored in /sbin, /usr/sbin, and /usr/local/sbin. /sbin contains binaries
essential for booting, restoring, recovering, and/or repairing the system in
addition to the binaries in /bin.
...


I'd recommend reading the FHS for a better understanding of all this:

http://www.pathname.com/fhs/

HTH
 
Old 11-21-2005, 07:50 PM   #6
WilliamS
Member
 
Registered: Nov 2003
Location: 46N 76W
Distribution: Slackware 14.1
Posts: 380

Rep: Reputation: 31
Write "whereis <name-of-program>" in cli, and it will show where an installed program is.

Last edited by WilliamS; 11-21-2005 at 07:52 PM.
 
Old 11-22-2005, 12:01 AM   #7
ic_torres
Member
 
Registered: Nov 2005
Location: ABAP
Distribution: slackware 12.0, Vector Linux STD 6.0 and 5.8, ZenWalk 4.6.1, OpenBSD 3.9
Posts: 389

Original Poster
Rep: Reputation: 34
HMM OK.... YEP M USING THE SEARCH THINGY IN CL.. THANKS TO YOU GUYS... . TIL NEXT TIME...
 
Old 11-22-2005, 05:12 AM   #8
maginotjr
Member
 
Registered: Aug 2004
Location: BR - Floripa
Distribution: Ubuntu 9.10 - 2.6.x.x
Posts: 661

Rep: Reputation: 34
Quote:
Originally posted by rkelsen
According to the FHS:
...
/bin contains commands that may be used by both the system administrator and by
users, but which are required when no other filesystems are mounted (e.g. in
single user mode). It may also contain commands which are used indirectly by
scripts.
...
Utilities used for system administration (and other root-only commands) are
stored in /sbin, /usr/sbin, and /usr/local/sbin. /sbin contains binaries
essential for booting, restoring, recovering, and/or repairing the system in
addition to the binaries in /bin.
...


I'd recommend reading the FHS for a better understanding of all this:

http://www.pathname.com/fhs/

HTH
this is close to what I mean in other words ..
 
  


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
Installing .bin-files, leave the file in /usr/local/bin/ ? lagu2653 Linux - Software 1 11-08-2005 09:30 PM
path in services wrong for clamav updated frm 0.75 to 0.80 usr/bin vs usr/local/bin Emmanuel_uk Linux - Newbie 3 04-22-2005 02:02 AM
/usr/bin/X11/ and /usr/X11R6/bin/ the same? linuxtesting2 Linux - Newbie 2 11-16-2004 11:57 AM
Is '/usr/bin/find' reliable if '/bin/ls' has been replaced? DigaMe Linux - Security 2 11-12-2004 11:42 PM
bin/bash:usr/bin/lpr NO SUCH FILE OR DIRECTORY Adibe_Hamm Linux - Newbie 3 10-14-2003 03:30 AM


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