Linux File System Basics

Source: Internet
Author: User

/Bin: stores the most common executable files in the system.

/Boot: stores Linux kernel and system startup files, including Grub and lilo boot programs.

/Dev: stores all device files, including hard disk, partition, mouse, USB, tty

/Etc: stores all configuration files of the system.

/Home: default location of the user directory

/Media: the Ubuntu system automatically mounts the CD-ROM, floppy drive, and USB storage period, and stores the files temporarily read.

/Mnt: This directory is usually used as the mount point of the mounted file

Absolute path: the exact location of the file in the system.

Relative Path: the location of a file or directory relative to the current location of the user

File Type

-Common files

B. input and output files

C character Device File

D contains several files or subdirectories

L only keeps the file address, not the file itself

A mechanism for inter-process communication. It is a temporary file used for inter-process communication.

S is an application interface used for inter-process communication and communication between two computers

Mkdir-p indicates creating nested subdirectories.

Column: mkdir-p dir1/dir2/dir3

Rmdir-p: recursively Delete sub-Directories

Column: rmdir-p dir1/dir2/dir3 (equivalent to rm-r dir1)

Chmod: change file attributes

Chmod-R changes the attributes of this directory and all files below.

Hard connection: Use the physical number-inode allocated to each file in linux to establish a connection.

Hard: ln target link: target indicates the file, and link indicates the created connection name.

Soft connection: Use the path name of the file to establish a connection.

Soft: ln-s target link: target indicates the file, and link indicates the created connection name.

Tar:

-X release an archive file

-C. Create a new archive file

-V displays the entire archiving and release process.

-F: Specifies the file name of the archive object. Otherwise, the default name is used.

-J: Archive generated by tar and compressed by bzip2

-Z: Archive generated by tar and compressed by gzip

Column: tar-cjf example.tar example: returns all examplefiles to the archive, and uses bzip2compressed file example.tar

Tar-czf example.tar example archive all examplefiles and use gzipcompressed file example.tar

Tar -xvzfexample.tar. bz is equivalent to extracting and releasing the tar file.

Tar -xvjfexample.tar.gz

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.