Slide 1

Slide 1 text

Field Notes of a Command Line Ninja Rustam Mehmandarov Riga Dev Day

Slide 2

Slide 2 text

Agenda Intorduction History Expansions/Shorthand Useful cmd Example IRL

Slide 3

Slide 3 text

History http://xkcd.com/149/

Slide 4

Slide 4 text

History sudo !! http://xkcd.com/149/

Slide 5

Slide 5 text

Expansion, Alias …

Slide 6

Slide 6 text

Useful commands

Slide 7

Slide 7 text

Examples IRL

Slide 8

Slide 8 text

Summon power of the gods? ls –o –t –r –h or ls –thor

Slide 9

Slide 9 text

Top 10 commands used history | awk 'BEGIN {FS="[ \t]+|\\|"} {print $3}' | sort | uniq -c | sort - nr | head

Slide 10

Slide 10 text

Magic 1. svn log -r : > svn_log.txt 2. cat svn_log.txt | grep Jira# | sed -r s/Jira#:[[:space:]]// | sort | uniq > jira_saker.txt

Slide 11

Slide 11 text

More magic! 1. cd takeoff/rotate/up/stop/land 2. echo $_ | awk 'BEGIN {FS="/"}{print $1"();", $2"();", $3"();", $4"();", $5"();"}' >> fun.js && node fun.js

Slide 12

Slide 12 text

No content

Slide 13

Slide 13 text

No content

Slide 14

Slide 14 text

No content

Slide 15

Slide 15 text

Thank you! rmehmandarov [email protected]

Slide 16

Slide 16 text

No content