mirror of
https://github.com/xmengnet/the-art-of-command-line.git
synced 2024-12-25 15:06:30 +08:00
Merge pull request #384 from MintCN/history-fix
add one abbreviation of history command
This commit is contained in:
commit
ce4c33f83d
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ Notes:
|
||||||
|
|
||||||
- For editing long commands, after setting your editor (for example `export EDITOR=vim`), **ctrl-x** **ctrl-e** will open the current command in an editor for multi-line editing. Or in vi style, **escape-v**.
|
- For editing long commands, after setting your editor (for example `export EDITOR=vim`), **ctrl-x** **ctrl-e** will open the current command in an editor for multi-line editing. Or in vi style, **escape-v**.
|
||||||
|
|
||||||
- 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 see recent commands, `history`. There are also many abbreviations such as `!$` (last argument), `!n` (nth command) and specially `!!` (last command), though these are often easily replaced with **ctrl-r** and **alt-.**.
|
||||||
|
|
||||||
- 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`.
|
- 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`.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue