1
0
mirror of https://github.com/jlevy/the-art-of-command-line.git synced 2024-12-16 10:59:20 +02:00

Merge pull request #360 from dspinellis/home

Add home directory basics
This commit is contained in:
Joshua Levy 2016-01-26 14:03:32 -08:00
commit 051275b581

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.