More useful bash tricks for navigating your filesystem.

Posted: December 8, 2014. At: 12:31 PM. This was 3 years ago. Post ID: 7951

To navigate back to the last directory you were in, type cd -. This will take you back to where you were before.

The cd ~ command will take you back to your home directory.

The user can also use the cd command by itself to go back to the home directory.

Using cd .. will take you back one directory.

TRON Legacy UNIX login. They got this right!
TRON Legacy UNIX login. They got this right!

When editing a command line in bash, use Ctrl-a to go to the start of the command and Ctrl-e to go to the end.

No comments have been made. Use this form to start the conversation :)

Leave a Reply