Linux from getting started to mastering--linux file addressing and file management

Source: Internet
Author: User
Tags touch command

I. System Architecture of Linux

Linux is a tree-down structure, the largest directory is "/" (root directory), and the root directory of the two-level directory is the system during the installation process.

               

                  

Two. Administrative commands for files

One of the important ideas in Linux is that everything can be treated as a file , so it's important to deal with files in Linux learning, and here's how to manage files

1. Document creation

Touch File

Attention:

Touch can not only create files but also modify the timestamp of the file, the timestamp is divided into:

Atime: The time ID that is accessed within the file

Mtime: The time that the file content was modified is identified

CTime: The time that the file attribute or file content was modified is identified

That is, the corresponding command is: touch-a filename

touch-m filename

touch-c filename

You can see a new file named "File" appears on the desktop of the virtual machine, and a new file is created with the Touch command. If you want to see the effect of touch modification timestamps more visually, you can use the Stat command to do a simple experiment with touch-m as an example.

You can see that the second time you use the Touch command, the Modify and change of file files have changed, that is, Mtime and CTime have changed.

2. Create a Directory

mkdir Directory

Mkdir-p DIR1/DIR2/DIR3 # #-P indicates that when a recursive directory is established, it is automatically created when the upper directory does not exist

Linux from getting started to mastering--linux file addressing and file management

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.