Frequently, when in your terminal, you will want to go to your home directory.

Your home directory is where, by default, most software and operating systems will place files and settings specific to the user.

On Linux, this is typically

/home/rad

On macOS, this is typically

/Users/rad

On Windows, this is typically

C:\Users\rad>

You do not need to remember the actual location.

You can go to your home directory using the following command:

cd ~

The magic is the tilde character “~

For many years, I have been using that.

On Windows:

windowsCD

On macOS / Linux:

bashCD

I am embarrassed to say that it has taken me a lifetime to stumble upon an even easier way. Simply do this:

cd

This is just the command cd.

That will take you directly to your home directory.

On macOS / Linux:

bashCD2

On Windows:

windowsCD2

TLDR

In the terminal, the command cd will take you to your home directory.

Happy hacking!