2017-11-06 07:33:59 +01:00
|
|
|
## Moving Around
|
|
|
|
|
2017-12-08 05:47:52 +01:00
|
|
|
- Move to the previous terminal: `Alt+Left`
|
|
|
|
- Move to the next terminal: `Alt+Right`
|
|
|
|
- Switch to the Nth terminal: `Ctrl+Alt+F<N>`
|
|
|
|
- Scroll up: `Shift+PgUp`
|
|
|
|
- Scroll down: `Shift+PgDn`
|
2017-11-06 07:33:59 +01:00
|
|
|
|
|
|
|
## Manipulating Text
|
|
|
|
|
2017-12-08 05:47:52 +01:00
|
|
|
- Copy text: `Ctrl+Shift+C`
|
|
|
|
- Paste text: `Ctrl+Shift+V`
|
|
|
|
- Go to the beginning of the line: `Ctrl+A`
|
|
|
|
- Go to the end of the line: `Ctrl+E`
|
|
|
|
- Remove everything after the cursor: `Ctrl+K`
|
2017-11-20 03:20:43 +01:00
|
|
|
|
|
|
|
## Piping
|
|
|
|
|
|
|
|
- Take the output from `a` and use it as the input for `b`: `a | b`
|
2017-12-08 05:47:52 +01:00
|
|
|
- Take the output from `a` and write it to the file `b`: `a > b`
|
|
|
|
- Take the output from `a` and append it to the file `b`: `a >> b`
|
2017-11-20 03:20:43 +01:00
|
|
|
|
|
|
|
## Wildcard
|
|
|
|
|
|
|
|
- Use `*` anywhere as a wildcard to find all matches
|
2017-12-08 05:47:52 +01:00
|
|
|
|
|
|
|
## Control Keys
|
|
|
|
|
|
|
|
- Cancel the running command: `Ctrl+C`
|
|
|
|
- Suspend the current process (resume with `fg`): `Ctrl+Z`
|
|
|
|
|