Add home directory basics

This commit is contained in:
Diomidis Spinellis 2016-01-26 11:28:16 +02:00
parent 5417c239b4
commit 459467c5eb

View file

@ -83,7 +83,9 @@ Notes:
- To see recent commands, `history`. There are also many abbreviations such as `!$` (last argument) and `!!` last command, though these are often easily replaced with **ctrl-r** and **alt-.**.
- To go back to the previous working directory: `cd -`
- Go to your home directory with `cd`. Access files relative to your home directory with the `~` prefix (e.g. `~/.bashrc`). In `sh` scripts refer to the home directory as `$HOME`.
- To go back to the previous working directory: `cd -`.
- If you are halfway through typing a command but change your mind, hit **alt-#** to add a `#` at the beginning and enter it as a comment (or use **ctrl-a**, **#**, **enter**). You can then return to it later via command history.