Description of the structure and purpose of the folders under Linux

Source: Internet
Author: User
Tags log log temp file storage

Bin Binary Executable command

Dev Device Special issues

ETC System Management and configuration files

ETC/RC or Etc/rc.d or ETC/RC? D directory of scripts or scripts that run when you start or change the run level

ETC/PASSWD user database, where the domain gives the user name, real name, user start directory, encryption password, etc.

ETC/FDPRM Floppy disk parameter table

Etc/fstab List of file systems that need to be installed automatically at startup

Etc/group similar to ETC/PASSWD, group information

Configuration information for Etc/inittab Init

Etc/issue contains the user's output information before the logon prompt

Etc/profile Administrator establishes default environment for all users

Etc/shells list The shells that can be used

ETC/RC.D startup configuration files and scripts

The base point of the home user's home directory, such as the user's home directory is/home/user

LIB standard programming library, similar to DLL files in Windows

Sbin System Management Command, which is the hypervisor used by the system administrator

Temp file storage points common to TMP

Root system administrator's home directory

The MNT system provides users with temporary mounting of other file systems

Overflow zone for large var files, such as log files for various services

Var/catman formatted help page

Var/lib files to be changed when the system is in normal operation

Var/local variable data for stored programs installed in Usr/local

Var/lock Locking Files

Var/log log files for various programs/var/log/wtmp log records all logins to the system and

Logoff, syslog Var/log/messages Records store all core and System program information Var/log

The file is not determined to grow and should be periodically cleared

Var/run Save the next system boot valid information about the system file

USR's largest directory, used by applications and files in almost all of this directory, contains:

Usr/bin a multitude of applications

Usr/sbin Some management programs for super users

Usr/doc Documentation

Usr/include the header files needed to develop and compile applications under Linux

Usr/lib Common dynamic-link libraries and package profiles

User/man Help Documentation

Usr/local/bin Local Add-on command

Usr/local/lib locally added Coogan file system

Some common log file uses in Linux systems

  1. >/var/log/messages: Logs Linux kernel messages and common log information for various applications, including startup, IO errors, network errors, program failures, and so on. For applications or services that do not use stand-alone log files, it is generally possible to obtain related event logging information from the file.

  2. >/var/log/cron: Logs event messages generated by Crond scheduled tasks.

  3. >/VARLOG/DMESG: Records the various event information of the Linux system during the boot process.

  4. >/var/log/maillog: Records the e-mail activity that enters or issues the system.

  5. >/var/log/lastlog: Recent successful logon events and last unsuccessful logon events.

  6. >/var/log/rpmpkgs: Install each RPM package list information in the recording system.

  7. >/var/log/secure: Logs event information during user logon authentication.

  8. >/VAR/LOG/WTMP: Records each user logon, logoff, and system startup and shutdown events.

  9. >/var/log/utmp: Record details for each user who is currently logged on

Description of the structure and purpose of the folders under Linux

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.