Cheatography
https://cheatography.com
Notes | Command derived from plugin | | Command derived from preferences |
TMUX<Tmux Leader>+x
| Close current pane | <Tmux Leader>+-
| New horizontal pane | <Tmux Leader>+|
| New vertical pane | <Tmux Leader>+z
| Toggle current pane to full screen | <Tmux Leader>+[
| Set cursor to move up screen | Alt+<arrow>
| Move to pane in direction of arrow / / / |
<Tmux Leader> is Ctrl+a
| | Navigating Directoriesls
| List contents of current directory | tree
| Display current directory and one level below as tree | tree <dir>
| Display <dir> and one level below as tree | cd <dir>
| Change directory to <dir> | cd ..
| Move up to parent of current directory | cd -
| Change to previous working directory | pushd <dir>
| Create mark for <dir> in a stack | popd
| Go to marked directory at top of stack |
Working With LinesCtrl+a
| Move cursor to BEGINNING of current line | Ctrl+e
| Move cursor to END of current line | Alt+b
| Move cursor BACK one word | Alt+f
| Move cursor FORWARD one word | Ctrl+k
| Delete from cursor to END of line | Ctrl+u
| Delete from cursor to BEGINNING of line | Alt+d
| Delete word IN FRONT of cursor | Ctrl+w
| Delete word BEHIND cursor |
| | Navigating Processesps
| List running processes in Bash | ctrl-z
| Move current process to background in suspended state | bg
| Start most recent suspended process & run in background | fg
| Bring most recent background process to foreground | kill <pid>
| Force quit <pid> from ps |
The output of ps can be piped to another command such as grep or kill
Working With Filesvim <file>
| Open a file in vim | vim .
| Open vim at current working directory | open .
| Open current directory in Finder (OSX) | cat <file>
| Read and output current file into bash | less <file>
| Display a paged version of file in terminal | findfile <file>
| Search current directory and children for <file> |
Using less instead of cat keeps bash history and screen clean as less opens another window for viewing
|
Created By
Metadata
Favourited By
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets
More Cheat Sheets by brennanmeadowcroft