Introduction
In this tutorial, I have collected 10 useful utility tools for Linux users which will include various network monitoring, system auditing or some another random commands which can help users to enhance their productivity. I hope you will enjoy them.
1. w
Display who is logged into the system and what process executed by them.
1 |
$w |
for help
1 |
$w -h |
for current user
1 |
$w <username> |
2. nmon
Nmon or nigel’s monitor is a tool which displays performance information of the system.
1 |
$ sudo apt-get install nmon |
1 |
$ nmon |
nmon can dump information related to netwrok, cpu, memory or disk uses.
nmon cpu info (press c)
nmon network info (press n)
nman disk info (press d)
3. ncdu
A Command utility is a cursor based version of ‘du’, this command is used to analyze disk space occupied by various directories.
1 |
$apt-get install ncdu |
1 |
$ncdu / |
Final output:
Press n to order by name or press s to order by file size(default).
4. slurm
A command line utility used for command based network interface bandwidth monitoring, it will display ascii based graphic.
1 |
$ apt-get install slurm |
Examples:
1 |
$ slurm -i <interface> |
1 |
$ slurm -i eth1 |
options
Press l to display lx/tx led.
press c to switch to classic mode.
press r to refresh screen.
press q to quit.
5.findmnt
Findmnt command is used to find mount file systems. It is used to list mount devices and can alos mount or unmount devices as and when required, it comes as a part of util-linux.
Examples:
1 |
$findmnt |
To get output in list format.
1 |
$ findmnt -l |
List file systems mounted in fstab.
1 |
$ findmnt -s |
List mounted files systems by file type
1 |
$ findmnt -t ext4 |
6. dstat
A combined and flexible tool which can be used to monitor memory, process, network or disk space performance, it is a good replacement of ifstat, iostat, dmstat etc.
1 |
$apt-get install dstat |
Examples:
A detailed info about cpu, hard disk and network.
1 |
$ dstat |
-c cpu
1 |
$ dstat -c |
Some more detailed information about cpu
1 |
$ dstat -cdl -D sda1 |
-d disk
1 |
$ dstat -d |
7. saidar
Another cli based system statistics monitoring tool, provide information about disk uses, network, memory, swap etc.
1 |
$ sudo apt-get install saidar |
Examples:
1 |
$ saidar |
Enable colored output
1 |
$ saider -c |
8. ss
ss or socket statistics is a good alternative to netstat it directory gather information from kernel space nad play fast in comparision to the netstat utility.
Examples:
List all connections
1 |
$ ss |less |
Greb only tcp traffic
1 |
$ ss -A tcp |
Grab process name and pid
1 |
$ ss -ltp |
9. ccze
A tool that decorate your logs :).
1 |
$ apt-get install ccze |
Examples:
1 |
$ tailf /var/log/syslog | ccze |
List ccze modules:
1 |
$ ccze -l |
Save log as html.
1 |
tailf /var/log/syslog | ccze -h > /home/tux/Desktop/rajneesh.html |
10. ranwhen.py
A python based terminal utility that can be used to display system activities graphically. Details are presented in a very colorful histogram.
Install python:
1 |
$ sudo apt-add-repository ppa:fkrull/deadsnakes |
Update system:
1 |
$ sudo apt-get update |
Download python:
1 |
$ sudo apt-get install python3.2 |
1 |
$ unzip ranwhen-master.zip && cd ranwhen-master |
Run the tool.
1 |
$ python3.2 ranwhen.py |
Conclusion
These are the less popular, yet important Linux administration tools. They can help user in their day to day activities. In our upcoming articles, we will try to bring some more Admin/user tools.
Have fun!
Souce:https://www.unixmen.com/10-useful-utilities-linux-users/
未经允许不得转载:VPS啦 » 10 Useful Utilities For Linux Users