The origin of/usr and the/usr directory knot

Source: Internet
Author: User

The origin of/usr and the/USR directory structure

This article turns from delectat.com
In the discussion, most of the points were that:

    • USR is the abbreviation for UNIX system resources;
    • USR is the user's abbreviation;
    • USR is the abbreviation for UNIX software resources.
According to common sense, the user abbreviation is not very likely, because it conflicts with home/home. It's just that the system resources or the abbreviation for the software resources are really bad. I looked at a lot of things, but found even Wikipedia is ambiguous.
Then finally found the relevant documentation and introduction. (Via,cache)
/usr usually contains by far the largest share of data on a system. Hence, the one of the most important directories in the system as it contains all the user binaries, their documentati On, libraries, header files, etc .... X and its supporting libraries can is found here. User programs like Telnet, FTP, etc .... is also placed here. In the original Unix implementations,/USR was where the home directories of the users were placed (that's to say,/usr/s Omeone was and the directory now known As/home/someone). In current unices,/usr is where User-land programs and data (as opposed to ' system land ' programs and data) are. the Name hasn ' t changed, but it's meaning have narrowed and lengthened from "Everything user related" to "user usable programs and data ". As such, some people may now refer to the directory as meaning ' user System Resources ' and not ' user ' as is originally I ntended. (via 1,2)
/usr is the core of the system and contains all the shared files. It is one of the most important directories in UNIX systems, covering binaries, various documents, various header files, x, and various library files, as well as many programs, such as Ftp,telnet, and so on.
The former/USR is also the user's home directory, storing a variety of user files-now has been replaced by/home (for example,/usr/someone has been changed to/home/someone). Modern/usr only stores a variety of programs and data, the user directory has been transferred. Although the/USR name has not changed, its meaning has changed from "User directory" to "Unix system resources" directory. It is worth noting that on some UNIX systems,/usr/someone is still treated as a user's home directory, such as Minix.
At this point, the truth. It looks like the/var/run moved to/run just a while ago.
Really do not see do not know, a look startled. Linux has evolved over the years, and many catalogs have been created and used to make fundamental changes. The Wheel of history is moving forward, superseding, the so-called: learning history, harvesting knowledge, dedication, progress.
Appendix:/USR directory structure
  • /usr/bin: All executables, such as Gcc,firefox (not included in/sbin and/bin);
  • /usr/include: All kinds of header files, compile files and so on need to use;
    • /usr/include/' package-name ': program-specific header file;
  • /usr/lib: So the library file required by the executable file;
  • /usr/local:/usr usually contains only the program that comes with the system when it is released, while/usr/local is the directory that the local system administrator uses to freely add programs;
  • /usr/x11r6:x system binary files, library files, documents, fonts, etc. It is not equivalent to/usr, only x can call these library files, etc., other programs do not read or use. Because Linux does not have a native graphical interface, and Linux is mostly for server, the graphical interface is meaningless, where X11R6 represents version 6;
    • /usr/x11r6/bin:x binary file containing the necessary files to run X;
    • /usr/x11r6/include:x Related header files;
    • /usr/x11r6/lib:x library file;
    • The/usr/x11r6/lib/modules:x module is loaded at startup. Lack of video4linux, DRI and GLX and input modules will not work properly;
    • Font file for/usr/x11r6/lib/x11/fonts:x font server;
  • /usr/doc: Documentation. Actually is the soft link of/usr/share/doc;
  • /USR/ETC: A rarely used configuration file to store;
  • /usr/games: Once included games and other documents, and now rarely used;
  • /usr/info: System related information, is the soft link of/usr/share/info;
  • /usr/man:man Manual, has been moved to/usr/share/man;
  • /usr/sbin: Similar/sbin,root can be performed. However, this directory is not included in the environment variable $PATH, it contains programs similar to Chroot, Useradd, in.tftpd and Pppconfig;
  • /usr/share: It contains shared files among various programs, such as fonts, icons, documents, etc. (/usr/local corresponds to the directory is/usr/loca/share);
    • /usr/share/doc: Man manual for similar applications. It contains the program's description file, the default configuration file, etc.;
    • /usr/share/info: Not commonly used, has been replaced by man;
    • The Manual of/usr/share/man:app;
    • /usr/share/icons: Application of the icon and other files, divided into png,svg and other forms;
    • /usr/share/fonts: Font file, System-wide usable, ~/.fonts only available to current users;
  • /usr/src:linux kernel source code and documentation, etc.;
    • /usr/src/linux:linux source code;
    • /usr/src/linux/.config: A file generated by the kernel compilation process, usually generated by the command ' make config ', ' make menuconfig ' or ' make xconfig ';
    • /usr/src/linux/.depend,/usr/src/linux/.hdepend: ' Make DEP ' detects files required for compilation dependencies, generated by/usr/src/linux/.config;
    • /USR/SRC/LINUX/COPYING:GNU license;
    • /usr/src/linux/makefile: Makefile required to compile the kernel;
    • /usr/src/linux/rules.make: When there are multiple Makefile, make is executed according to its rules;

The origin of/usr and the/usr directory knot

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.