This document provides a summary of commands for tmux, vim, sed, awk, find, grep, and screen. Tmux allows creating and managing multiple terminal sessions and windows. Vim commands include navigating and editing text. Sed, awk and grep can be used to find and replace text in files. Find searches for files and directories. Screen allows attaching and detaching from terminal sessions.
1 of 1
Download to read offline
More Related Content
crontab_unified.pdf
1. Unified Cheat Sheet
by crontab via cheatography.com/136189/cs/29788/
tmux
Ctrl+b c Create new window
Ctrl+b , Rename window
Ctrl+b [0-9] Switch to window
Ctrl+b " Split horizontal
Ctrl+b % Split vertical
Ctrl+b [arrow keys] Move between panes
Ctrl+b z (Un)Zoom pane
Ctrl+b $ Rename session
Ctrl+b s Change session
A session holds at least one window that holds at least one pane.
vim
:noh disable highlight
c Case insensitive
:2,4co10 Copy lines 2 to 4 in line 10
:2co. Copy line 2 under current line
]s Spell check: next mispelled word
[s Spell check: previous misspelled
word
'z=' Spell check: spelling suggestion
' :[RANGE]s/{pattern}/{string}/[
flags]'
Replace(substitute)
Replace:
{pattern}: Literal or regular expression. c at end to case insens
itive
[flags]: gall occurences ifor insensitive search
vim ranges
99 line 99
. current line(default range)
% all lines(same as 1,$)
1,99 Lines 1 to 99 both included
sed
`sed 's/FOO/BAR/g'
file
Replace any FOO occurrence with BAR in
file
-i Persist changes in file
awk
awk '{ print $1, $3
}' file
Print first and third column in file
-F ',' Use comma as a field separator(de
fault: space)
find
-type [f|d|l|s] restrict to files(f), directories(d), links(l)...
-name <TEXT> name to find. Allow blob
-o OR
grep
-r recursive
-i ignore case
-v invert match
-n show line number
-e pattern to search
--include=GLOB
| --exclude
=GLOB
search/exclude files whose name match
GLOB. Use {,} for more than one value
--exlude-dir
=GLOB
Same usage as --include
-I Ignore binary files
screen
screen -x Attach
Prefix Ctrl+a
Prefix(Custom) Ctrl+z
<prefix> d Detach
<prefix> A Rename current window
<prefix> :sessi
onname foo
Rename session
<prefix> c Create new window
scren -S <name> Create new session named <na
me>
By crontab
cheatography.com/crontab/
Not published yet.
Last updated 2nd December, 2022.
Page 1 of 1.
Sponsored by ApolloPad.com
Everyone has a novel in them. Finish
Yours!
https://apollopad.com