5

My terminal used to read

username@computername:~$

but after navigating to some directories, it now says

username@computername:/$

and I can't get back to my Home directory.

edwinksl
  • 24,109

1 Answers1

16

The easiest way is to simply type cd. Argumentless cd means cd will bring you to your home directory, which is also known as ~. This means cd ~ would also work, albeit with a couple more keystrokes.

edwinksl
  • 24,109