linux-"absolute path vs. relative path" and "File Basic Operation" (4)

Source: Internet
Author: User
"Absolute path vs. relative path"

Absolute path: When we get a file, we write everything from the root directory to level two to more.

Finally found this file, this is the "absolute path"

Relative path: The relative position of the target file and my own file

Current directory:./.

Parent directory:. /   ..

On level two directory:. /.. /

/home/shuhua/beijing/haidian/shangdi

I want to go to the "Haidian" directory.

CD Haidian

Cd.. /reached Haidian with "relative path"

Cd/home/shuhua/beijing/haidian to Haidian via "absolute path" mode

We arrived at a directory there are two ways to choose "relative to the road" and "absolute path"

How to choose two ways, the less input information, choose which kind.

/home/shuhua/liaoning/shenyang/haidian/tiexi

/etc/sysconfig/network-script/

"Basic Text Operation"

linux-"absolute path vs. relative path" and "File Basic Operation" (4)

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.