command line - Difference between cd / and cd ~ - Ask Ubuntu
could give me explanation of difference between cd /
, cd ~
also, difference when using same command @ administrator level?
cd /
changes directory root of filesystem, /
while cd ~
changes home directory.
here ~
interpreted home folder of user executing command. me /home/anwar
.
if run cd ~
root, change working directory root users home, @ /root
. root
users home folder not typically reside under /home/
directory, instead found directly under root directory /
.
check question general introduction linux filesystem
Comments
Post a Comment