The difference between the ~ and/in the Novice Linux system

Source: Internet
Author: User

The difference between ~ and/in Linux systems

The problem is:

Rookie in the process of learning to create a directory (folder), but do not know the location of this directory, do not know that the directory has those files.

Cause Analysis:

After testing the discovery may be the creation of folders without noticing the difference between the ~ and/, when viewing directories and files without the CD to the corresponding directory down.

/is the root node, ~ is home. Note the difference between the front and bottom characters.

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M00/88/5F/wKioL1f0dCCA40wqAAA07XOmixU276.png-wh_500x0-wm_3 -wmp_4-s_1635501768.png "title=" 1.png "alt=" Wkiol1f0dcca40wqaaa07xomixu276.png-wh_50 "/>

1. Root User login:

Is

~ It's/root/.

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M00/88/63/wKiom1f0demifcF5AAAVjSceWIE874.png-wh_500x0-wm_3 -wmp_4-s_2515812357.png "title=" 3.png "alt=" Wkiom1f0demifcf5aaavjscewie874.png-wh_50 "/>

2. User login:

Is

~ It's/home/user/.

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/88/63/wKiom1f0darDGDDxAAAbUyA2qfY621.png-wh_500x0-wm_3 -wmp_4-s_1933526489.png "title=" 2.png "alt=" Wkiom1f0dardgddxaaabuya2qfy621.png-wh_50 "/>


So the directory or file created under the ~ should be found under /home/user , the directory or file created in / below will be searched / down.



This article is from the "12048118" blog, please be sure to keep this source http://12058118.blog.51cto.com/12048118/1858802

The difference between the ~ and/in the Novice Linux system

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.