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

Add ctrl-d to exit

Fixes #481
This commit is contained in:
Brad Erickson 2019-05-23 00:02:23 -07:00
parent 2e5608865f
commit 806a8fae68

View File

@ -98,6 +98,8 @@ Notes:
- 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.
- Use **ctrl-d** instead of typing `exit`; especially helpful on remote ssh sessions.
- Use `xargs` (or `parallel`). It's very powerful. Note you can control how many items execute per line (`-L`) as well as parallelism (`-P`). If you're not sure if it'll do the right thing, use `xargs echo` first. Also, `-I{}` is handy. Examples:
```bash
find . -name '*.py' | xargs grep some_function