Six little-known cool Unix/Linux commands

Source: Internet
Author: User

BKJIA: In this article, we will introduce six cool and practical Unix/Linux tools. From viewing the weather through your terminal to letting a system administrator teach you how to complete a difficult task, there is almost no clue. Interestingly, most of these tools were released decades ago! Please let me know ......

Mentoring dialogue: kibitz

Kibitz is a terminal tool mainly used by a "master" to help him/her "apprentice )". Essentially, it provides two-way interaction by making a private terminal session visible to both parties. Then, "Master" can teach "apprentice" How to complete various tasks. For "master", a common session is as follows:


MASTER: apprentice. Enter kibitz-29466)

Any command or text entered by the "master" or "apprentice" can be displayed on the terminal on the other side. The display of the apprentice is as follows:


Input kibitz-29466 as an apprentice)

See the figure to understand the system load: tload

Tload is a simple tool that can display load conditions in character graphics on the terminal. It can intuitively display the load changes of the system over a period of time-time is a configurable parameter. This is the screen when tload is running:


Tload: Can you see the changes in the system load?

Segfault debugging ASSISTANT: catchsegv

Catchsegv can help people diagnose program "segment errors (BKJIA edit Note: segmentation fault, segfault. This error is common in C Programs and is usually caused by access to invalid memory addresses )". If you are processing an application that frequently shows "segfault", start it with catchsegv and observe the CPU register snapshot, memory ing, and tracking feedback when segfault appears! This is the snapshot of the catchsegv runtime:


Catchsegv: It is helpful for developers to debug segfault.

Old screen: dislocate

For those who are familiar with the program "screen", dislocate is an "old generation ". It is a simple tool that allows people to separate programs through pseudo terminals and re-mount them when they are needed. This tool is specifically provided for those slow or unstable terminal sessions which are easily interrupted.

Cat reflection: tac

Tac is a command line tool that can read files in reverse order. In this case, the most interesting is the latest grep entry.

    # 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 Forecast: weather

Weather is a weather CT-based program that runs on a terminal and captures weather information from rainmaker.wunderground.com. Wunderground uses port 3000 to provide a common weather service. Weather uses this service to obtain city weather data and display it on the terminal. This is an example of running it:

    $ 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>

This is their entire lineup! I hope this article will help you!

Bkjia.com: the source and source of the original article .]

Original article: Six cool unixy commands

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.