Linux directory Structure

Source: Internet
Author: User

In the Linux system, there are several directories are more important, usually need to be careful not to accidentally delete or arbitrarily change the internal files.

/etc: Also mentioned above, this is the configuration file in the system, if you change a file in this directory may cause the system will not start.

/bin,/sbin,/usr/bin,/usr/sbin: This is the placement directory of the system preset execution files, such as LS is in the/bin/ls directory.

It is worth noting that,/bin,/usr/bin is the instruction for the system user (except for root), and/sbin,/usr/sbin is the command to use for root.

/var: this is a very important directory, the system ran a lot of programs, then each program will have a corresponding log generated, and these logs are recorded in this directory, specifically in the/var/log directory, the other mail preset placement is also here.

See the brochure for details

Http://www.w3cschool.cc/linux/linux-system-contents.html

cd/[able to enter the catalogue]
CD bin   [into the catalogue]
PWD    [shows which directory is currently in]
  CD  /boot/         "If you want to go from one directory to another, go out and get in."
      • Absolute path:
        The path is written by the root directory/write, for example:/usr/share/doc this directory.
      • Relative path:
        The way the path is written, not by/writing, for example, by/usr/share/doc to the bottom of/usr/share/man, can be written as: CD. /man This is how the relative path is written!
      •     ls: List directory    CD: Switch directory    pwd: Show current directory    mkdir: Create a new directory    rmdir: Delete an empty directory    CP: Copy file or directory    RM: Remove file or directory
        Linux file Content View
Use the following command in a Linux system to view the contents of a file: Cat  starts displaying the file contents from the first line  the TAC starts with the last line and can see that the TAC is backwards written by cat! NL   Display, the output line number! More page by page The content of the file is less similar to more, but better than more, he can page forward! Head only looks at a few lines tail only look at the tail a few lines

Linux directory Structure

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.