(Office) Notepad _Linux directory

        Reprinted from rookie Tutorial: https: //www.runoob.com/linux/linux-system-contents.html

       

    / Bin: 
    bin Binary is the abbreviation This directory is the most frequently used commands. 

    / The Boot: 
    Here are some of the core stored in files that are used when you start Linux, including some connection files and image files. 

    / Dev: 
    dev is Device (device) abbreviation is stored in the directory Linux external device, the access device in the manner of Linux and accessed files are the same. 

    / Etc: 
    This directory is used to store all of the systems management needs of configuration files and subdirectories. 

    / Home: 
    the user's home directory, in Linux, each user has its own directory, the directory name is based on the general user account named. 

    / Lib: 
    this directory to store the system the most basic dynamic link shared libraries, its role is similar to Windows in the DLL file. Almost all applications need to use these shared libraries. 

    / Lost + found: 
    Under normal circumstances this directory is empty, when the system illegal shutdown, some files stored here. 

    / Media: 
    Linux system will automatically identify some devices, such as U disk, CD-ROM, etc., when the identification, linux identified device will mount this directory. 

    / Mnt: 
    The system provides this directory is to enable users to temporarily mount other file systems, we can drive mount/ mnt / , and then enter the directory you can view the contents of the CD-ROM drive. 

    / Opt: 
     This is for the host to install additional software placed in the directory. For example, you install a ORACLE database you can put this directory. The default is empty. 

    / Proc: 
    This directory is a virtual directory, which is the system memory map, we can get system information directly access this directory through. 
    Contents of this directory on your hard disk but not in memory, we can also directly modify certain files inside, such as the ping command can be shielded by the command of the host, so that others can not ping your machine: 

    echo 1 > / proc / SYS / NET / ipv4 / icmp_echo_ignore_all

     / root: 
    the directory for the system administrator, also known as super user's home directory permissions persons. 

    / Sbin: 
    S is the Super User's meaning here is stored in the system management program used by system administrators. 

    / Selinux: 
     This directory is Redhat / CentOS specific directory, Selinux is a security mechanism, similar to the windows firewall, but this mechanism is more complex, this directory is stored selinux related documents. 

    / SRV: 
     the directory to store some data to be extracted after the service started.

    / SYS: 

     This is a core linux2.6 great changes. The directory of a file system sysfs 2.6 kernel emerging installation. 
    sysfs file system integrates information on the following three kinds of file systems: for proc file system processes information for devfs file system devices and file systems for devpts pseudo terminal. 

    The file system is a visual reflection of kernel device tree. 

    When a kernel object is created, the corresponding files and directories are created kernel object subsystem. 

    / Tmp: 
    This directory is used to store temporary files. 

    / Usr: 
     This is a very important directory, many applications and user files are placed in this directory, similar to the program files directory under the windows. 

    / usr / bin: 
    the application system users. 

    / usr / sbin: 
    more advanced management programs and system daemons super users. 

    / usr / the src: 
    kernel source placement default directory. 

    / Var : 
    This directory contains a constantly expanding with something we were used to modify those directories are often placed in this directory. Including various log files. 

    / RUN:
    Information since a temporary file system, storage system startup. When the system is restarted, the files in this directory should be deleted or cleared. If you have on your system / var / RUN directory, it should point to run. 

In the Linux system, there are several directories is more important, usually need to be careful not to accidentally deleted or shuffle internal documents. 

/ Etc: top also mentioned, this is the system configuration file, if you change a file in the directory may cause the system will not boot. 

/ bin, / sbin, / usr / bin, / usr / sbin: This is the system default directory to place executable file, such as ls is in / bin / ls directory under. 

It is noteworthy that, / bin, / usr / bin system is for instruction (except the root pass the user) used by a user, and / sbin, / usr / instruction sbin is used to root. 

/ Var : This is a very important directory, a number of programs running on the system, each program will have a corresponding log is generated, and the log is recorded to this directory, particularly in / var / log 'directory, in addition pre-placement mail is also here.

              Record a small knowledge:

Linux shutdown 
in linux field mostly used in servers, rarely encountered in the operation shut down. After all, running a service on the server is never-ending, except under special circumstances, it will be forced to shut down. 
Proper shutdown procedure is: Sync > the shutdown> reboot> the HALT 
shutdown command is: shutdown, you can look at the man shutdown help documentation. 
For example, you can run the following command off: 
Sync will synchronize data from the memory to the hard drive. 
shutdown shutdown command, you can look at the man shutdown help documentation. For example, you can run the following command shutdown: 
the shutdown -h 10 'This Server by Will the After the shutdown 10 mins' This tells you that the computer will shut down after 10 minutes, and will appear in the user's current login screen. 
shutdown -h now flew off 
the shutdown -h 20 : 25 will be shut down today at 20:25 
the shutdown -h + 10 off ten minutes after the 
shutdown -r now reboot the system immediately 
the shutdown -r + 10 system is restarted after ten minutes
reboot is the reboot -r now equivalent to the shutdown 
the HALT shut down the system, equivalent to the shutdown -h now and poweroff 
To sum up, either restart the system or turn off the system, we must first run the sync command, the data in memory is written to disk. 
There shutdown command shutdown -h now halt poweroff and the init 0 command, reboot the system -r now reboot the init have the shutdown 6 .

 

Guess you like

Origin www.cnblogs.com/historylyt/p/11971816.html