Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up
for free
Command line Tips you (might) don't know
Oursky Limited
March 24, 2014
Programming
1
140
Command line Tips you (might) don't know
Oursky Limited
March 24, 2014
Tweet
Share
More Decks by Oursky Limited
See All by Oursky Limited
oursky
1
400
oursky
1
230
oursky
0
230
oursky
0
130
oursky
0
110
oursky
0
190
oursky
3
260
oursky
0
110
oursky
1
270
Other Decks in Programming
See All in Programming
takutakahashi
3
300
koheisakata
0
150
manfredsteyer
PRO
0
230
grapecity_dev
0
180
mrtc0
2
1k
korosuke613
2
260
naokioouchi
1
300
raulh82vlc
1
260
yoshinoriiiii
0
110
mihyaeru21
0
360
neripark
3
680
suzukiot
0
290
Featured
See All Featured
imathis
479
150k
shpigford
369
42k
skipperchong
8
720
mojombo
359
62k
geeforr
332
29k
jonyablonski
19
1.2k
bkeepers
408
58k
kastner
54
1.9k
jacobian
255
20k
rocio
155
11k
jcasabona
8
550
malarkey
119
16k
Transcript
5 Command Line Tips you (might) don’t know Ben Cheng,
Oursky Internal Presentation
1. bashstrap https://github.com/barryclark/bashstrap
2. set editing-mode vi ~/.inputrc
Demo http://www.catonmat.net/download/bash-vi-editing- mode-cheat-sheet.pdf
3. byobu
4. pushd / popd
5. ctrl-r
5.5 long command #hash
6. ssh config
Host w User chpapa Hostname hostname.com ServerAliveInterval 30 ServerAliveCountMax 2
ControlPath ~/.ssh/master-%r@%h:%p ControlMaster auto ControlPersist 4h GSSAPIAuthentication no
7. F*ck GFW ssh -c arcfour -D 8080 server.com
8. mkdir -p /what/the/ hell
9. open .
10. pbcopy / pbpaste
11. sudo !!