| Description | Shortcut key |
| Run the command | Enter |
| Show the previous command | Up Arrow |
| Allows you to type a part of the command you're looking for and finds it | Ctrl + R |
| Stops the current command, resume with fg in the foreground or bg in the background | Ctrl + Z |
| Halts the current command, cancel the current operation and/or start with a fresh new line | Ctrl + C |
| Clear the screen | Ctrl + L |
| Allows the scrolling of the bash command window using Shift + Up Arrow and Shift + Down Arrow | command | less |
| Repeats the last command | !! |
| Repeats the last argument of the previous command | command |
| Return to the start of the command you're typing | Ctrl + A |
| Go to the end of the command you're typing | Ctrl + E |
| Cut everything before the cursor to a special clipboard, erases the whole line | Ctrl + U |
| Cut everything after the cursor to a special clipboard | Ctrl + K |
| Paste from the special clipboard that Ctrl + U and Ctrl + K save their data to | Ctrl + Y |
| Swap the two characters before the cursor (you can actually use this to transport a character from the left to the right, try it!) | Ctrl + T |
| Delete the word / argument left of the cursor in the current line | Ctrl + W |
| Log out of current session, similar to exit | Ctrl + D |
| List manual pages for subject | apropos subject |
| Display man pages containing keyword | man -k keyword |
| Show the manual for command | man command |
| Make a pdf of a manual page | man -t man | ps2pdf - > man.pdf |
| Show full path name of command | which command |
| See how long a command takes | time command |
| Show possible locations of app | whereis app |
| Show which app will be run by default; it shows the full path | which app |
No comments:
Post a Comment