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

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User

sql server - "Configuration file does not exist", Event ID 274 - Super User