List of commands you use most often

2010-07-25 1 min read bash Linux
$ history | <a class="zem_slink" title="AWK" rel="homepage" href="http://cm.bell-labs.com/cm/cs/awkbook/index.html">awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head > /tmp/cmds | <a class="zem_slink" title="Gnuplot" rel="homepage" href="http://www.gnuplot.info/">gnuplot -persist <(echo 'plot "/tmp/cmds" using 1:xticlabels(2) with boxes') Plot your most used commands with gnuplot. <a href="http://www.commandlinefu.com/commands/view/5845/list-of-commands-you-use-most-often">View this command to comment, vote or add to favourites <a href="http://feeds2.feedburner.com/commands/by/sthrs">View all commands by <a href="http://feeds2.feedburner.com/commands/by/sthrs">sthrs <a href="http://www.commandlinefu.com"> by David Winterbottom (<a href="http://codeinthehole.com">codeinthehole.com) <a href="http://feedads. Continue reading

Magic space on the current command line

2010-06-25 1 min read bash Fedora Linux
# For how to set up magic space for Bash see: # – http://www.ukuug.org/events/linux2003/papers/bash_tips/#slide15 # – http://codesnippets.joyent.com/posts/show/1690 man bash 2>/dev/null | less -p &#8217;magic-space&#8217; man bash 2>/dev/null | less -p &#8217;Event Designators&#8217; man bash 2>/dev/null | less -p &#8217;\!#&#8217; # &#8221;The entire <a class="zem_slink" title="Command-line interface" rel="wikipedia" href="http://en.wikipedia.org/wiki/Command-line_interface">command line typed so far.&#8221; <a href="http://snippets.dzone.com/posts/show/10265">Read more :<h6 class="zemanta-related-title" style="font-size: 1em;">Related articles by Zemanta <ul class="zemanta-article-ul"> <li class="zemanta-article-ul-li"><a href="http://www.makeuseof.com/tag/trigger-wake-lan-mac-address/">How To Trigger Wake On LAN Using The MAC Address (makeuseof. Continue reading

Using tput to save, clear and restore the terminal contents

2010-06-17 1 min read Linux
Using tput to save, clear and restore the terminal contents $ tput smcup; echo &#8221;Doing some things…&#8221;; sleep 2; tput rmcup Very useful for interactive scripts where you would like to return the terminal contents to its original state before the script was run. This would be similar to how vi exits and returns you to your original terminal screen. Save and clear the terminal contents with: tput smcup Continue reading

Teaching Kids Programming with Free Programming Languages

2010-06-16 1 min read Linux
<a href="http://blog.amit-agarwal.co.in/category/linux/">Bookmark this category Teaching Kids Programming with Free Programming Languages Tech Source From Bohol: &#8221;Most of these languages are graphics-based that makes them fun and attractive for young ones or even for adults who are absolute beginner in programming. So enjoy and teach your kids programming with these free programming languages.&#8221; URL: <a href="http://linuxtoday.com/news_story.php3?ltsn=2009-10-02-010-35-OS-SW-DV">http://linuxtoday.com/news_story.php3?ltsn=2009-10-02-010-35-OS-SW-DV

List of commands you use most often

2010-06-16 1 min read bash Learning
<span style="font-size: x-large;"><a href="http://feedproxy.google.com/~r/Command-line-fu/~3/6MxHiSiINdo/list-of-commands-you-use-most-often">List of commands you use most often $ history | <a class="zem_slink freebase/en/awk" title="AWK" rel="homepage" href="http://cm.bell-labs.com/cm/cs/awkbook/index.html">awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head > /tmp/cmds | gnuplot -persist <(echo 'plot "/tmp/cmds" using 1:xticlabels(2) with boxes') Plot your most used commands with gnuplot. <a href="http://www.commandlinefu.com/commands/view/5845/list-of-commands-you-use-most-often">View this command to comment, vote or add to favourites <a href="http://feeds2.feedburner.com/commands/by/sthrs">View all commands by <a href="http://feeds2.feedburner.com/commands/by/sthrs">sthrs <a href="http://www. Continue reading

vi tips with examples for programmers — very useful

2010-06-05 1 min read Vim Tips
First off, sorry for not posting regularly. Will be so for probably another couple of days. In the meantime found a very nice artcle on vim: <a href="http://en.wikibooks.org/wiki/Learning_the_vi_editor/Vim/Useful_things_for_programmers_to_know" target="_blank">http://en.wikibooks.org/wiki/Learning_the_vi_editor/Vim/Useful_things_for_programmers_to_know
Older posts Newer posts