4

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.

1
11

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.

1

Not the answer you're looking for? Browse other questions tagged or ask your own question.