field notes of a command line ninja - rainfocus · . bashrc file edit search options help alias...
Post on 24-Aug-2020
2 Views
Preview:
TRANSCRIPT
FieldNotesofaCommandLineNinja
RustamMehmandarov
JavaOne 2016
Agenda
Intorduction
History
Expansions/Shorthand
Usefulcmd
ExampleIRL
Historyhttp://xkcd.com/149/
History
sudo !!
http://xkcd.com/149/
Expansion,Alias…
Usefulcommands
ExamplesIRL
Summonpowerofthegods?
ls –o –t –r –h
or
ls –thor
Top 10commands used
history | awk 'BEGIN {FS="[ \t]+|\\|"} {print $3}' | sort | uniq -c | sort -nr | head
Magic
1.svn log -r <revFra>:<revTil> > svn_log.txt
2.cat svn_log.txt | grep Jira# | sed -r s/Jira#:[[:space:]]// | sort | uniq >
jira_saker.txt
Moremagic!
1.cd takeoff/rotate/up/stop/land
2.echo $_ | awk 'BEGIN {FS="/"}{print $1"();", $2"();", $3"();",
$4"();", $5"();"}' >> fun.js && node fun.js
Thank you!
@rmehmandarov
top related