Back
Upon a standard login , every Linux user is taken to a a home directory . The ~ tilde can be used to represent the home directory of any currently active user.
For example :
When user jhon logs in ,he's taken to his home directory . /home/john. In contrast , the home directory of the root administrative user is root ( / ) .
Thus, the effect of the cd ~ command depends on your username.
You can list the contents of your home directory from anywhere in the directory tree with ls ~ command .
Upon a standard login , every Linux user is taken to a a home directory . The ~ tilde can be used to represent the home directory of any currently active user.
For example :
When user jhon logs in ,he's taken to his home directory . /home/john. In contrast , the home directory of the root administrative user is root ( / ) .
Thus, the effect of the cd ~ command depends on your username.
You can list the contents of your home directory from anywhere in the directory tree with ls ~ command .