mirror of
https://github.com/xmengnet/the-art-of-command-line.git
synced 2024-12-24 03:56:28 +08:00
Add home directory basics
This commit is contained in:
parent
5417c239b4
commit
459467c5eb
1 changed files with 3 additions and 1 deletions
|
@ -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 a new issue