meta data for this page
This is an old revision of the document!
Bash / Shell
<command> & | start and background |
<command> && | start and wait for success |
> | write to new file (file reset is first operation) |
>> | append to existing file |
| | pipe output |
Terminal Shortcuts
CTRL
| +a | Go to beginning of commandline |
| +e | Go to end of command line |
| +u | Delete to line begin |
| +k | Delete to line end |
| +c | kill current process |
| +z | put current process in background |
Background processes
| jobs | list jobs |
| fg %# | move to foreground |
| bg | continue in background |
| kill %# or kill <pid> | kill process |
| kill -9 .. | terminate |
Filtering
grep | Find strings in files |
sort | Sort file |
sort | uniq, sort -u | Sort & remove duplicates |
wc | word count |
awk | don't ask |
sed | replace characters in file |
jq | filter json |