in Interesting

Six cool unixy commands

We’ve compiled a list of six Unix/Linux tools that are cool and useful. From checking the weather via your terminal to having a sysadmin walk you through a difficult task. Interestingly, most of these tools were released decades ago! Read on…

kibitz

kibitz is a terminal tool that can be used by a mentor to assist his or her apprentice. It essentially makes what is normally one private terminal session visible to both parties providing bi-directional interactivity. The mentor can then walk the apprentice through various tasks and howtos. A typical session looks like the following to the mentor:

Whatever commands or text that the mentor or the apprentice types is seen on the other end. It looks like this to the apprentice:

tload

tload is a neat tool that displays the load average on the terminal in a form of character drawings. It gives an interesting visual of the system load (/proc/loadavg) over time – time being an adjustable parameter. Without further ado, here’s a screen shot of tload in action:

catchsegv

catchsegv helps one diagnose programs that segfault. If you’re dealing with an app that segfaults frequently, start it up with catchsegv and watch it produce a snapshot of CPU registers, memory maps, and backtrace at the time of the segfault! Here’s a snapshot of it in action:

dislocate

For those of you who are familiar with the program screen, dislocate is its grandfather.It’s neat tool that allows one to detach programs from the pseudo terminal and reattach to them whenever needed. This is tool for those with slow or unstable terminal sessions that are prone to disconnect.

tac

tac is a command line tool that reads a file in reverse order. It’s ideal for log sifting tasks where one’s interest is in grep’ing the most recent entries.

# cat /var/log/sip

Target 1… DONE
Target 2… DONE
Target 3… DONE
# tac /var/log/sip
Target 3… DONE
Target 2… DONE
Target 1… DONE

weather

weather is an expect-based program that runs from the terminal and grabs weather information from rainmaker.wunderground.com. Wunderground runs a public weather service on port 3000. weather leverages this service to pull weather data by city and displays it on the terminal. Here’s a sample run:

$ weather HOU

<snip>

Enter 3-letter city code: HOU
Weather Conditions at 12:53 PM CST on 24 Dec 2010 for Houston Intercontinental, TX.
Temp(F)    Humidity(%)    Wind(mph)    Pressure(in)    Weather
========================================================================
63          70%         ESE at 10       30.07      Overcast
Forecast for Houston, TX
406 am CST Fri Dec 24 2010
.Today…Mostly cloudy with a 30 percent chance of showers. Highs
in the upper 60s. Southeast winds 10 to 15 mph.
.Tonight…Showers likely and isolated thunderstorms. Lows in the
mid 40s. Northeast winds 5 to 10 mph in the evening becoming
north and increasing to 15 to 20 mph after midnight. Chance of
rain 70 percent in the evening decreasing to 60 percent after

<snip>

That’s all folks! I hope you enjoyed this entry.

Write a Comment

Comment

Comment moderation is enabled. Your comment may take some time to appear.

  1. Great post.
    But where is the link for each of them ? I want to try them out.

    Thanks!

  2. My personal list of equivalents on FreeBSD. In order of appearance.

    watch instead of kibitz

    Whenever I’ve monitored system loads over time I’ve used programs generating images for web pages. So I can see some use for tload.

    I’d rather use gdb than catchsegv though.

    screen has worked fine for me many years.

    tail or for i in `ls | sort -r`; do cat $i; done which can easily be made into a function called tac in your .bashrc.

    Not sure what to say about weather… useful if you work full time in an all text system. Personally I prefer checking weather radar images and animations with a web browser.

Webmentions

  • 海外ノースフェイス ヌプシ テント ミュール 3全品送料無料定番 December 25, 2010

    海外ノースフェイス ヌプシ テント ミュール 3全品送料無料定番

    Science professional Discovers Risky shoes abuse

  • 品質と価格に優れるシャネル 店舗 東京激安 大バーゲン December 25, 2010

    品質と価格に優れるシャネル 店舗 東京激安 大バーゲン

    Components and formation throughout Vegas – high heels basically leaves without any goodbye

  • 2014 New New Declic 120Mm Black Christian Louboutin Pumps Savings December 25, 2010

    2014 New New Declic 120Mm Black Christian Louboutin Pumps Savings

    Terminate Protesting and complaining And Start your own babyliss Method Preferably

  • Homepage December 25, 2010

    … [Trackback]…

    […] There you will find 80772 more Infos: blog.unixy.net/2010/12/six-cool-unixy-commands/ […]…

  • rimonabantexcellence site title December 25, 2010

    […] Hello http://blog.unixy.net/2010/12/six-cool-unixy-commands/ […]

  • bgpmon blog December 25, 2010

    bgpmon blog…

    A work of a harvest,accurately because of your troublesome writing, we can feel so much eudaemonia, learn more our own understanding of their. The world could be so wonderful….

  • payday loans December 25, 2010

    payday loans…

    Hi! Your post rocks also as becoming legitimate fantastic fully grasp!…

  • Philips LED Light Bulbs Dimmable December 25, 2010

    Thanks a lot for the blog.Much thanks again. Great….

    I think this is a real great article post.Really thank you!…

  • MaxLite, Maxlite December 25, 2010

    A round of applause for your blog article.Much thanks again. Cool….

    Very informative blog. Keep writing….

  • White LED Strip Lights December 25, 2010

    Thank you ever so for you article post.Really looking forward to read more. Keep writing….

    I really liked your post.Much thanks again. Cool….

  • Best~Most Effective~Top~Greatest~Easiest Link Building Practices~Methods~Techniques December 25, 2010

    […] Six cool unixy commands | UNIXy […]

  • URL December 25, 2010

    … [Trackback]…

    […] Read More Infos here: blog.unixy.net/2010/12/six-cool-unixy-commands/ […]…

  • My Money – Money (usnews.com) | Best Ways Of Saving Money December 25, 2010

    […] Six cool unixy commands | UNIXy […]

  • Four uncool unixy commands | UNIXy December 25, 2010

    […] And as the saying goes: one man’s trash is another man’s treasure. Following our six cool unixy command entry, here’s the uncool list of unixy commands. So here’s to hoping this short list is […]

  • Some Nice Commands « The Quest for Gurudom December 25, 2010

    […] comments So I was just Stumbling along last night, and I found some very interesting commands at Unixy. The commands of interest to me were screen (and consequently, byobu), and […]

  • Friday's lottery numbers « The Chronicle-Telegram – Lorain … December 25, 2010

    […] Six cool unixy commands | UNIXy […]

  • Tweets that mention Six cool unixy commands | UNIXy -- Topsy.com December 25, 2010

    […] This post was mentioned on Twitter by Christopher A.Warner, Proggit Articles and UNIXy. UNIXy said: Six cool unixy commands http://bit.ly/gEoR6l […]