Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Linux Literacy -- /usr/bin And Isntalling, Why's it like this? Why change it?
jeff_brown
post Mar 28 2004, 07:23 PM
Post #1


Grub-er
**

Group: Members
Posts: 48
Joined: 12-February 04
Member No.: 2,361



Why is /usr/bin flat? Isn't that messy? Would it not be preferable to put the code for related programs in spearate directories within /usr/bin?

I'm about to install CheeseTracker, and in the install instructions it says "edit the makefile, change the install directory [from /usr/bin to whatever you want]". Why would one want to change it?
Go to the top of the page
 
+Quote Post
hughesjr
post Mar 28 2004, 07:56 PM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151



All executables are in /usr/bin (or /bin , /usr/local/bin) and all system executables are in /usr/sbin (or /sbin or /usr/local/sbin) ... that is just part of the LSB (Linux Standard Base). It is the way UNIX has done it for more than 30 years as well.

The executables are all in one place ... which is in the standard PATH.

Here is the section of the LSB that discusses Filesystem Hierarchy.


--------------------
Johnny Hughes
hughesjr@linuxhelp.net
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
 
+Quote Post
Termina
post Mar 29 2004, 02:23 PM
Post #3


RMS is my Hero
******

Group: Support Specialist
Posts: 862
Joined: 18-February 04
From: Wisconsin
Member No.: 2,404



Ugly, confusing, and when you're looking for something that you're not sure the name of, hopeless. happy.gif

Not sure why they don't... stuborn, I guess. wink.gif

*dodges a shoe thrown by hughesjr*


--------------------
*Points finger at the author above him* They're a witch! Burn them!
---
Vist my website!
Join me in IRC! Server: st0rage.org Channel: #UnhandledExceptions
Go to the top of the page
 
+Quote Post
hughesjr
post Mar 29 2004, 07:03 PM
Post #4


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151



Hey ... Don't go changing stuff on me now!

I've been learning this for the last 21 years ... and I just about have it down now laugh.gif


--------------------
Johnny Hughes
hughesjr@linuxhelp.net
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
 
+Quote Post
jeff_brown
post Mar 30 2004, 01:08 PM
Post #5


Grub-er
**

Group: Members
Posts: 48
Joined: 12-February 04
Member No.: 2,361



The LSB FSH was really interesting. Odd, bcause it's such a dry read, but I was fascinated.

Apparently, then, every command in a flat executable directory is supposed to be standalone. I thought /usr/bin was holding the contents of entire libraries -- for example, all the functions needed for xmms. I was wrong -- there's only one executable for xmms in there, that executable being xmms itself. If that's the case for every program, then I suppose it's reasonable to have a flat directory because it lets you to know everything you can do.

Questions of transparency aside, I'm still unclear as to why somebody would change the /usr/bin target directory in a configure (or was it make?) file when installing software.
Go to the top of the page
 
+Quote Post
Robert83
post Mar 30 2004, 01:13 PM
Post #6


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,439
Joined: 3-January 04
From: Germany
Member No.: 2,069



Hi,

Security...Security...Security would be the answer to that,

you see, when everyone is using the same settings, same browser, same e-mail software , viruses trojans come out that search for weakpoints in those software, those destinations...and will find them easier at the default location...

Sincerely
Robert B


--------------------
Robert Becskei
robert83@linuxhelp.net
--------------------
May the source be with us!
--------------------
AMD X2-3800 @ 2400Mhz
2048MB DDR 400Mhz
DFI Lanparty UT4 NF4 ULTRA-D
GeForce 7800GT
250GB+250GB
Pioneer DVD-RW
17inch Samsung Syncmaster 757NF
WinXP Pro (SP2)/ CentOS 4.3
--------------------
Go to the top of the page
 
+Quote Post
hughesjr
post Mar 30 2004, 05:51 PM
Post #7


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151



also back to the FSH ... somethings would go to /usr/local/bin if they are for a segmented group and not for all users. Somethings might go in /usr/sbin if for administrators ... or in /bin if you need it available before filesystems other than root are mounted.

And it is the case that the executable goes in /bin, /usr/bin and /usr/local/bin .... the libraries go in /lib, /usr/lib and /usr/local/lib ...


--------------------
Johnny Hughes
hughesjr@linuxhelp.net
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 19th October 2017 - 11:31 AM