mirror of
https://github.com/jlevy/the-art-of-command-line.git
synced 2024-12-16 10:59:20 +02:00
commit
051275b581
@ -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.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user