Meaning of Linux folders

Source: Internet
Author: User
Tags temporary file storage

Every time I see the various folders, I wonder why the folder is named like this. Some of them can be guessed as device, but etc, Proc, or something is unknown. I did not find any authoritative explanation after I searched it today. I saw this English answer in a forum: Of course, there are also Chinese folders.

/Bin: Where binary programs live.
/Boot: the special programs that start the system when you turn the machine on.
/Dev: aaaaaalll the "device" listings for hardware of every concievable flavor, along with some "imaginary" devices,
Lile/dev/null and/dev/Zero. When you get a random number it usually comes from/dev/random.
/Etc: configuration files.
/Home: the user's directories live here.
/Lib: the library files that programs need to run, if they are compiled to link against these libraries.
/Lost + found: Look here after a system crash/kernel panic or other extreme scenario to find "Orphaned" files.
/MISC: Kinda reminds you of/etc, doesn' t it? Every time I see this folder on a system, it's empty, but I ascertain that
It stands for "Miscellaneous", and I think it may be a place for users to keep their own "/etc" type files?
/Mnt: "Mount", the directory that acts as a gateway to every other disk or file system. Floppies are accessed from
/Mnt/floppy, your second hard drive might be/mnt/HD here, and so on.
/OPT: "optional", where programs that are installed after the initial system install sometimes end up.
/Proc: Running "processes". The "Everything is a file" paradigm carried to the Linux degree! This folder hosts files
Which keep tabs on boring stuff like what daemons are running and the process ID of Emacs while you have
Emacs open.
/Root: Root's home!
/Sbin: the "System-administrator's BIN file", which hosts programs that wocould be in/bin if they didn't have "Root-only"
Access permissions.
/Tmp: "temporary" files, of use by programs which need to throw together a data file on-the-fly in preperation
Executing some other task. This folder gets flushed on reboot.
/Usr: "user". Practically a whole other system in here,/usr/bin is still more binaries,/usr/DOC and/usr/share/DOC are
Documentation folders,/usr/share/games/fortune is where the funny quotes come from when you log on (if
That feature is enabled). The idea is that this shocould be where files/programs accessible by all users shoshould
Be, and thus your desktop backgrounds come from/usr/share/wallpapers, or such. The other case is newly
Installed programs sometimes end up in/usr/local/bin.
/Var: "variable". system logs in here, recording such things as the last Foo commands typed at the prompt, start-up
Boot messages, and such.

 

Chinese:

 

/Bin binary executable command binary

/Dev device special file Device

/ETC system management and configuration file 1, editable text configuration 2, etce.pdf

The configuration file and script run commands started by/etc/rc. d

/Home: the base point of the user's home directory,

/Lib standard programming library, also known as dynamic link shared library

/Sbin system management command, which stores the management program system binary used by the system administrator.

/Tmp shared temporary file storage point temporary

/Root system administrator's home directory

/The MNT system provides this directory for users to temporarily Mount other file systems

The/lost + found directory is usually empty, and the system shuts down abnormally, leaving the "Homeless" file here.

/Proc virtual directory, which is the ing of system memory. You can directly access this directory to obtain the system information processes.

/Var overflow of some large files, such as the log file variable of various services

The/usr directory contains almost all the applications and files to be used. Including: 1, user 2, UNIX System Resources

/Usr/bin numerous applications

/Usr/sbin hyperuser Management Program

Header files required for developing and compiling applications in/usr/include Linux

/Usr/lib common dynamic link library and software package configuration file

/Usr/SRC Source Code. The Linux kernel source code is put here.

/Usr/local/bin commands added locally

/Usr/local/lib: locally added Library

There are multiple interpretations of some folders, so you can find the original authoritative explanation in the future.

 

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.