Merry Christmas from the Command Line!

Today we’re skinning holiday cats in bash. That’s Linux speak for we’re doing fun happy command line things for the sake of doing them. Merry Christmas!

Want to do a little math?

bc

echo 2+2 | bc

meimi039 adds echo $((2+2))

Next, bash shortcuts

beginning of line: home, or ctrl+a

end of line: end or ctrl+e

clear line: backspace or ctrl+u

clear screen: clear or ctrl+l

firefox or firefox, ctrl+z, bg, fg

pgrep gedit vs

ps aux | grep [g]edit | awk ‘{print $2}’

Search Wikipedia: wikipedia.org or

dig +short txt linux.wp.dg.cx

So this brings me to ask, what scripts, greasemonkey or otherwise, rock your world? Share ‘em with us at — tips@hak5.org. And be sure to check out our sister show Hak5 every week for more great stuff just like this. I’ll be there reminding you to trust your technolust.

Article source: http://revision3.com/haktip/bashpresents

View full post on National Cyber Security