File systems for Linux

Source: Internet
Author: User

The so-called Linux file system, refers to the Linux root directory contains some of the files directory and files. The main categories include the following:

/boot: Mainly refers to system-related files such as kernels, INITRD, and Grub (bootloader)

/dev: Device files: wherein the device files mainly include block device files, which are mainly characterized by random access, data block form of reading, character devices, which are mainly characterized by linear access, in character units. Device number: Main device number (major) and secondary device number (minor)

/etc: Configuration file

Home directory for users, each user has a user directory in the home directory

/root: Administrator's home directory

/lib: library file: Static library,. A; Dynamic library:. Dll,.so;/lib/modules: Kernel module files

/media: Mount directory point, mobile device

/MNT: Mount directory point, additional temporary file system

/OPT: Optional directory, installation directory for third-party programs

/proc: Pseudo file system, kernel mapping file
/sys: Pseudo file system, property mapping file related to hardware device

/tmp: Temp file,/var/tmp
/var: a variable file
/bin: Executable file, user command
/sbin: Managing Commands
/usr:shared, Read-only
/usr/bin
/usr/sbin
/usr/lib
Files related to System startup
/usr/local:
/usr/local/bin
/usr/local/sbin
/usr/local/lib

Path of third-party application storage

Operation commands related to catalog files:


Directory Management:
LS, CD, pwd, mkdir, rmdir, tree

File Management:
Touch, stat, file, RM, CP, MV, Nano

Ls
-L: Long format
File type: the
-: Normal file (f)
D: Catalog file
B: Block device files (blocks)
C: Character device file (character)
L: Symbolic Link files (symbolic link file)
P: Command pipe file (pipe)
S: Socket file (socket)
File permissions: 9-bit, every 3-bit group, each group: rwx (Read, write, execute), r--
Number of hard links to files
Owner of the file
Genus Group of files
File size (size), in bytes
Timestamp (timestamp): Last Modified Time
Access: Access
Modified: Modify, the file content has changed
Change: change,metadata, meta data
-H: Do unit conversions
-A: Show hidden files starting with.
. Represents the current directory
.. Represents the parent directory
-A
-D: Display the directory's own properties
-i:index node, inode
-R: Reverse Display
-R: Recursive (Recursive) display

Cd:change Directory
Home directories, home directories, home directory
CD ~username: Enter the home directory of the specified user
CD-: Switch back and forth between the current directory and the previous directory

mkdir: Creating an empty Directory
-P:
-v:verbose


# Tree: View directory tree

File creation and deletion
# Touch
-A
-M
-T
-C
# Stat

Delete File: RM
-I.
-F
-R

Copying and moving files
Cp:copy
CP SRC DEST
-R
-I.
-F
-P
-A: Archive replication, often used for backup

Mv:move
Moving files

MV SRC DEST

File systems for 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.