Top Ten useful Linux utility recommendations

Source: Internet
Author: User
Tags disk usage

These 10 Linux tools can help you improve your work and use efficiency, very practical.

1.w

Yes, you read it right, that's the W command. With this command we can see who is currently logged on to the system and what commands were executed.

650) this.width=650; "class=" Fit-image "src=" http://s1.51cto.com/wyfs02/M02/74/4E/ Wkiom1yyuggdlmeqaacpndk8hym913.jpg "border=" 0 "height=" 109 "width=" 498 "/>

2.nmon

Nmon is a gadget that can monitor the performance of the current system, and it needs to be installed with the following command:

sudo apt-get install Nmon

After installation, execute the nmon command to open:

Nmon

650) this.width=650; "class=" Fit-image "src=" http://s1.51cto.com/wyfs02/M00/74/4B/ Wkiol1yyui3w5fvhaafjnshbeeq512.jpg "border=" 0 "height=" "width=" 498 "/>"

Nmon can view network, CPU, memory, and disk usage.

After opening, press C to view the CPU information:

650) this.width=650; "class=" Fit-image "src=" http://s8.51cto.com/wyfs02/M01/74/4E/ Wkiom1yyuihxqvdnaaedruequqk804.jpg "border=" 0 "height=" "width=" 498 "/>"

After opening, press N to view network information:

650) this.width=650; "class=" Fit-image "src=" http://s9.51cto.com/wyfs02/M01/74/4B/ Wkiol1yyukbgsv-haadq8dtcog4350.jpg "border=" 0 "height=" "width=" 498 "/>"

3.ncdu

The NCDU command can be used to view and analyze the disk space usage of each directory in Linux, using the following command to install:

Apt-get Install NCDU

After installation, execute the following command to start the analysis from the root directory:

NCDU/

650) this.width=650; "class=" Fit-image "src=" Http://s9.51cto.com/wyfs02/M02/74/4E/wKiom1YYuj-yiah_ Aaepljjdzv4348.jpg "border=" 0 "height=" "width=" 498 "/>"

Note: Executing the above command can consume a lot of disk I/O

When the analysis is complete, output similar to the following is generated:

650) this.width=650; "class=" Fit-image "src=" http://s2.51cto.com/wyfs02/M00/74/4B/ Wkiol1yyunhcn6lzaafrl513mny963.jpg "border=" 0 "height=" "width=" 498 "/>"

We can sort by n by name in the result interface or by S by size.

4.slurm

Slurm is a network card bandwidth monitoring command-line utility that automatically generates ASCII graphics output. Install with the following command before use:

Apt-get Install Slurm

Use the following command to output:

Slurm-i < nic name >

650) this.width=650; "class=" Fit-image "src=" http://s3.51cto.com/wyfs02/M02/74/4E/wKiom1YYumvAt5A_ Aaf61h0ywwy714.jpg "border=" 0 "height=" "width=" 498 "/>"

The following options can be performed in the Slurm interface:

I: Show LX/TX status

C: Switch to the classic interface

R: Manual Refresh Interface

Q: Exit tool

5.findmnt

Findmnt is a Linux built-in command-line tool that is primarily used to locate mounted file system states. Findmnt can view the mounted devices on the current system, and mount or unmount operations are possible if necessary.

After executing the FINDMNT command, you will see the following input:

650) this.width=650; "class=" Fit-image "src=" http://s5.51cto.com/wyfs02/M01/74/4E/ Wkiom1yyuogjn1xsaakhimlhs4c063.jpg "border=" 0 "height=" "Width="/>

Of course, the following parameters are available:

Findmnt-l: Output in a list

Findmnt-s: The device mounted in the output fstab

Findmnt-t ext4: Output by File system type

6.dstat

Dstat is a tool that can be used and used in combination to monitor memory, conduct, network and disk performance, and can be used to replace Ifstat, Iostat, Dmstat and other tools. You need to do the following to install the command before use:

Apt-get Install Dstat

You can see all the monitoring data by executing the following command:

Dstat

650) this.width=650; "class=" Fit-image "src=" http://s3.51cto.com/wyfs02/M00/74/4B/ Wkiol1yyurcsxbpdaail4peggwg016.jpg "border=" 0 "height=" "width=" 498 "/>"

Its optional parameters are very many, commonly used are:

DSTAT-C: Monitoring CPU

DSTAT-CDL-D sda1: Monitoring CPU Details

DSTAT-D: Monitoring Disk

7.saidar

Saidar is another CLI system data monitoring and statistics tool that provides monitoring information about disk, network, storage, and SWAP. Use the following command to install it before using it:

sudo apt-get install Saidar

The Saidar can be executed directly after installation, but we typically use commands with parameters to generate a color output:

Saidar-c

650) this.width=650; "class=" Fit-image "src=" http://s6.51cto.com/wyfs02/M01/74/4E/ Wkiom1yyuqrcxtg2aahxpekhkti355.jpg "border=" 0 "height=" "width=" 498 "/>"

8.ss

The SS full name socket statistics is an alternative to Netstat's network connection viewing tool.

Direct execution of the SS can be viewed:

650) this.width=650; "class=" Fit-image "src=" http://s9.51cto.com/wyfs02/M01/74/4B/ Wkiol1yyutjrzyljaahhqezp06q686.jpg "border=" 0 "height=" "width=" 498 "/>"

Common parameters are:

Ss-a TCP: Specify View protocol

SS-LTP: Show process name and PID

9.ccze

Ccze is very useful, it can highlight the log in different colors, assist the Administrator to distinguish and view the analysis. Use the following command to install it before using it:

Apt-get Install Ccze

We can use it in a way similar to the following:

Tailf/var/log/syslog | Ccze

650) this.width=650; "class=" Fit-image "src=" http://s5.51cto.com/wyfs02/M02/74/4E/ Wkiom1yyuttx8h07aac7ghkvtya617.jpg "border=" 0 "height=" 109 "width="/>

Instead, use the ccze-l parameter to view the log types it supports.

650) this.width=650; "class=" Fit-image "src=" http://s1.51cto.com/wyfs02/M00/74/4B/ Wkiol1yyuv3ilgjlaai7q3ahe6q673.jpg "border=" 0 "height=" "width=" 498 "/>"

10.ranwhen.py

The last ranwhen.py we introduced is a Python tool that can graphically display system activity.

To use this tool, you need to install Python language support first:

sudo apt-add-repository ppa:fkrull/deadsnakessudo apt-get updatesudo apt-get Install python3.2

Then download ranwhen.py

wget https://github.com/p-e-w/ranwhen/archive/master.zipunzip master.zip && cd Ranwhen-master

Use the following command to execute ranwhen.py

python3.2 ranwhen.py

650) this.width=650; "class=" Fit-image "src=" http://s3.51cto.com/wyfs02/M02/74/4E/ Wkiom1yyu1yy4edgaadiq2urmum145.jpg "border=" 0 "height=" "width=" 498 "/>"

Summary

This article describes the 10 good Linux utility are also more interesting, I hope you can enjoy.


Top Ten useful Linux utility recommendations

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.