/etc compared to /usr
What is the benefit of having /etc and /usr when they both seem to contain the same thing. Is the /etc used for the purpose of managing the system and the /usr is used to store user profile configurations?
Heh. And /etc *did* once contain software - mostly programs for manipulating...
Heh. And /etc *did* once contain software - mostly programs for manipulating the other /etc files. Those were generally moved later into /bin, /sbin, /usr/bin, or /usr/sbin, as appropriate on different systems, although symlinks were left in the old locations for years.
Errata: /home/ should have been /home/USERNAME - the post system silently...
Errata: /home/ should have been /home/USERNAME - the post system silently ate the less/greater-than. "Berkeley" is the correct spelling.
To understand these names, you'll need to look back at the history. ...
To understand these names, you'll need to look back at the history.
/etc contains the static identity of the system, as expressed in configuration files. The dynamic aspects of the system's identity are generally in /var. These are two of the key directories which are not shared with other machines, in contrast to /bin, /usr, and other which are machine-identity-neutral and therefore sharable over NFS and the like.
/usr was originally the directory containing users in the 1970s, and its name is directly related to that purpose. Similar directories from the same time frame were things like /u0, /u1, and so on when the number of users grew higher. System utilities were in /bin and so on - /usr/bin didn't exist yet. Later, as those users (luminaries like Kernighan, Ritchie, Bourne, etc, many at Bell Labs, and others less well known) wrote extensions to the underlying system - especially at sites outside of Bell Labs like Berkerley and others where changing /bin might interfere with updating the distro later) - additional directories like /usr/bin (shared, user-added binaries) appeared. Over time, *that* distribution got picked up somewhere else, and at these new places, /usr/local/bin or its like appeared. Since /usr was effectively a system directory anywhere outside of where UNIX began, it was normal to put users elsewhere, and the convention of /home become fairly common in the 1990s. /home was often not itself the directory containing user homes, but often a collection of symlinks (or mountpoints) out to where the real homes were, scattered around the network. Thus a user could log into any network host, go to /home/, and be in the correct home directory regardless of what other host's drive it was really on.
The comment the the "usr" stands for something is an ex-post-facto rationalization, not the reality.
Most modern linux users are blissfully unaware of issues in sharing resources like home directories across scores or hundreds (or thousands, say at MIT Athena) of machines. Even developers often code unaware of the possibility of the same config files in a user's account being used from two or more computers at the same time - Firefox doesn't get it, lamely offering only profiles as a enabler. Oh well.
Anyway hope this helps :-) And remember, don't put filename extensions on your scripts, its a Bad Thing.
/etc is for configuration...
/etc is for configuration
/usr contain the program non system . there is more file for user
The /etc hierarchy contains configuration files. A "configuration file" is a...
The /etc hierarchy contains configuration files. A "configuration file" is a local file used to control the operation of a program; it must be static and cannot be an executable binary.where as /usr/ contains several other directory like bin.it is basically contain the user progrms and user home directory(current working directory) Created by the system administrator.
Note that "usr" is actually not an abbreviation of "user", but an acronym for...
Note that "usr" is actually not an abbreviation of "user", but an acronym for "Unix System Resources" - that's where all the non-essential software was placed on a conventional Unix system. /etc on the other hand, is used not for software, but for system-wide configuration files.
You can use the command `man hier` in a terminal in order to get a description of what the folders in a standard Unix file system hierarchy is used for.
/etc is used to store system configuration information such as security and...
/etc is used to store system configuration information such as security and daemon settings.
/usr is used to hold non-system software.
The user profile configurations are stored in each user's home directory under the /home directory.