Linux root directory comments, file types and application components

Source: Internet
Author: User
Tags temporary file storage

Root file System (ROOTFS)

/boot: Boot file directory, kernel file (vmlinuz), boot loader (bootloader,grub)

/bin: Basic user binary commands that are available to all users and cannot be associated with separate partitions. The program that the OS starts to put into it

/sbin: The basic command for managing classes, and cannot be associated to separate partitions. The program that the OS starts to put into it

/lib: Basic shared library files, and kernel module files (lib/modules);

/LIB64: Dedicated to the storage location of the secondary shared library files on the x86--64 system;

/etc: Configuration file directory (most are plain text files)

/home/username: General user home directory;

/root: Administrator's home directory;

/media: Portable Mobile device mount point: CDROM usb

/MNT: Temporary file system mount point

/dev: Device files and special file storage location;

B:block Device Random Access

C:character Device Linear Access

/OPT: Third-party application installation location;

/SRV: Data used by services running on the current system;

/tmp: temporary file storage location;

/usr:universal shared,read-only Data Global shared read-only

Bin: An application that ensures that the system has full functionality;

Sbin

Lib:

LIB64:

The header file used by the INCLUDE:C program (describes how the library file is called)

Share: Results in independent data. such as Doc,man, etc.;

Local: Third-party application installation location;

Bin,sbin,lib,lib64,etc,share

/var: variable data log files, etc.

Cachel: Application Cache Data Directory

LIB: Variable state information

Local: Special language for/usr/local storage of variable data

Lock: Lock file

LOG: Logs directory and files

Run: Running process-related data: PID programs typically used to store processes

TPM: Temporary files that are dedicated to the system restart process

Spool: Application Data Pool

/proc: A virtual file system for outputting kernel-related process information

/sys: Virtual file system for outputting information about hardware devices on the current system

/selinux: Strengthen security policy. Where information such as the relevant security policy is stored.


Components of an application on Linux:

Binaries:/bin,/sbin/usr/sbin,/usr/local/bin,/usr/local/sbin

Library files:/lib/lib64/usr/lib/usr/local/lib/usr/local/lib64

Configuration file:/etc//etc/directory/usr/local/etc

Help file:/usr/share/man/usr/share/doc/usr/local/share/man/usr/local/share/doc


File types under Linux:

-(f): Ordinary documents

d: catalog files;

B: Block device files

C: Character file

L: Symbolic Link file (only soft link)

P: Pipeline File

S: Socket file: Socket; (similar to collapse host communication)


System Management Class commands

Shutdown: Halt,poweroff,shutdown,init 0

Restart: reboot

-F: Force, do not call shutdown

-P: Power off

Shutdown:-r:reboot-h:halt

-C: Cancel shutdown or restart operation

Now: +m: Relative time +3m hh:mm: Absolute Time representation


User login Information View command:

WHOAMI: Displays the active user who is currently logged on

W: All current logon sessions and actions on the system.















This article is from the "11690957" blog, please be sure to keep this source http://11700957.blog.51cto.com/11690957/1914837

Linux root directory comments, file types and application components

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.