|
|
Command derived from plugin
|
|
|
Command derived from preferences
|
.tmux.conf for this cheatsheet available on Github brennanmeadowcroft/dotfiles.bash_profile for this cheatsheet available on Github brennanmeadowcroft/dotfiles
<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
ls |
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
|
Ctrl+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
|
ps |
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 |
ps can be piped to another command such as grep or kill
vim <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> |
less instead of cat keeps bash history and screen clean as less opens another window for viewing
No comments yet.
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.