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