Linux System Command Learning Series-File and directory management

Source: Internet
Author: User
Review the contents of the previous section:

1. Scheduled execution of Task commands Crontab–e, crontab–l,crontab–r

2. Job: Define a timed task to output Hello World to the/tmp/test.txt file every minute

Crontab–e

*/1 * * * * echo ' Hello World ' >>/tmp/test.txt

In this section, let's take a look at file and directory management

1. Computer operating system using directory organization files

2. All file systems form a directory tree structure

3. The directory tree has a root directory

4. View current directory command: PWD

5. Relative path and absolute path

The path to find starting from the root path is an absolute path, such as/usr/bin

The path relative to the current path, such as the current USR path, is the relative path, because the bin path is not started from the root path, but instead is looked up in USR as a relative path.

6. ... and.. The use

In each directory there will be two special directories, respectively. and.

A point. Represents the current directory, two points: Represents the previous level directory of the current directory

Job: Enter the OPT path, using the relative path method and the absolute path method to enter into the actually any sub-directory


Follow the public number "get kicked genius" and watch the free Linux commands video tutorial

Linux System Command Learning Series-File and directory management

Related Article

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.