Skip to content

Latest commit

 

History

History
65 lines (43 loc) · 993 Bytes

shell.md

File metadata and controls

65 lines (43 loc) · 993 Bytes
title kind keywords created_at
Working in the Shell
cheatsheet
code
cheatsheet
2015-jun-16 08:15:00

Handy Shortcuts

man readline for more

Ctrl+L - clear screen

Ctrl+U - delete backwards to the start of the line

Ctrl+K - delete until end of line

Alt+F - move forward 1 word
Alt+B - move backward 1 word

History

Ctrl+R - search history

tmux

Use it!

Ctrl+B - Hotkey (before all shortcuts, like in emacs)

? - Help

" - Split vertically
% - Split horizontally

Directory Stacks

Push a directory onto stack and enter it

$ pushd /dir/name

pop directory off, go back to previous

$ popd

Text Manipulation

$ asar list app.asar | grep -v "^/node" # every line NOT (-v) starting with (^) "/node"
$ sort log.csv | uniq > clean.csv
$ grep -E 'Set Flat|Show Panorama' clean.csv > flatpano.csv
$ egrep -o '([TLF][0-9].*){1,3}' clean.csv