10 useful tools for Linux Users
Introduction
In this tutorial, I have collected 10 useful tools for Linux users, including various network monitoring, system auditing, and some other practical commands, it can help users improve work efficiency. I hope you will like them.
1. w
Shows who has logged on to the system and what programs have been executed.
$ w
The header information is not displayed)
$ w-h
Displays the information of a specified user.
$ w<username>
2. nmon
Nmon is a tool for displaying system performance information.
$ sudoapt-get install nmon
$ nmon
Nmon displays information about netwrok, cpu, memory, and disk usage.
Nmon displays cpu information (by c)
Nmon displays network information (by n)
Nman Displays disk information (by d)
3. ncdu
Is a tool that supports the cursor.du
Program, this command is used to analyze the disk space occupied by various directories.
$ apt-get install ncdu
$ ncdu /
Final output:
Sort by n by file name, and sort by s by file size (default ).
4. slurm
A bandwidth monitoring command line program based on network interfaces, which displays text images with characters.
$ apt-get install slurm
For example:
$ slurm -i <interface>
$ slurm -i eth1
Option
- Display the lx/tx indicator by pressing l.
- Switch to the classic mode by pressing c.
- Press r to refresh the screen.
- Press q to exit.
5. findmnt
The Findmnt command is used to find the mounted file system. It is used to list the installation devices. It can also be mounted or detached as needed. It is part of the util-linux software package.
Example:
$ findmnt
Output in List format.
$ findmnt -l
List the file systems mounted in fstab.
$ findmnt -s
List mounted file systems by file type.
$ findmnt -t ext4
6. dstat
A flexible combination tool that can be used to monitor memory, processes, network, and disk performance. It can be used to replace ifstat, iostat, dmstat, and so on.
$ apt-get install dstat
For example:
View detailed information about cpu, hard disk, and network.
$ dstat
-C cpu
$ dstat -c
-D Disk
$ dstat -d
Displays cpu, disk, and other details.
$ dstat -cdl -D sda1
7. saidar
Another command line-based system statistics monitoring tool provides disk usage, network, memory, swap partition and other information.
$ sudoapt-get install saidar
For example:
$ saidar
Enable color output
$ saider -c
8. ss
Ss (socket statistics) is a good alternative to netstat. It collects information from the kernel space, which is better than netstat.
For example:
List all connections
$ ss|less
List tcp traffic
$ ss-A tcp
List process names and pid
$ ss-ltp
9. ccze
A tool for Beautifying log display :).
$ apt-get install ccze
For example:
$ tailf /var/log/syslog | ccze
List ccze modules:
$ ccze -l
Save the log as an html file.
tailf /var/log/syslog | ccze -h >/home/tux/Desktop/rajneesh.html
10. ranwhen. py
A Python-based terminal tool that can be used to display the system activity status graphically. The detailed information is displayed in a colorful bar chart.
Install python (LCTT note: In general, you should already have python, do not need this step ):
$ sudo apt-add-repository ppa:fkrull/deadsnakes
Update System:
$ sudoapt-get update
Download python:
$ sudoapt-get install python3.2
Click here to download ranwhen. py
$ unzip ranwhen-master.zip && cd ranwhen-master
Run the tool.
$ python3.2 ranwhen.py
Conclusion
These are some uncommon but important Linux management tools. They can help users in their daily lives. In our upcoming article, we will bring as many administrator/user tools as possible.
Have a good time!
Via: http://www.unixmen.com/10-useful-utilities-linux-users/
Author: Rajneesh Upadhyay Translator: strugglingyouth Proofreader: wxy
This article was originally compiled by LCTT and launched with the honor of Linux in China
This article permanently updates the link address: