Friday, October 9, 2015

[Linux Utilities]: 10 Useful Utilities For Linux Users - A must have Information

10 Useful Utilities For Linux Users

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.
$w
Selection_023
for help
$w -h
for current user
$w <username>
Selection_024

2. nmon

Nmon or nigel’s monitor is a tool which displays performance information of the system.
$ sudo apt-get install nmon
$ nmon
Selection_001
nmon can dump information related to netwrok, cpu, memory or disk uses.
nmon cpu info (press c)
Selection_002
nmon network info (press n)
Selection_003
nman disk info (press d)
Selection_004

3. ncdu

A Command utility is a cursor based version of ‘du’,  this command is used to analyze disk space occupied by various directories.
$apt-get install ncdu
$ncdu /
Selection_006
Final output:
Selection_007
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.
$ apt-get install slurm
Examples:
$ slurm -i <interface>
$ slurm -i eth1
Selection_009
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:
$findmnt
Selection_010
To get output in list format.
$ findmnt -l
Selection_011
List file systems mounted in fstab.
$ findmnt -s
Selection_012
List mounted  files systems by file type
$ findmnt -t ext4
Selection_013

 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.
$apt-get install dstat
Examples:
A detailed info about cpu, hard disk and network.
$ dstat
Selection_014
-c cpu
$ dstat -c
Selection_015
Some more detailed information about cpu
$ dstat -cdl -D sda1
Selection_017
-d disk
$ dstat -d
Selection_016

7. saidar

Another  cli based system statistics monitoring tool, provide information about disk uses, network, memory, swap etc.
$ sudo apt-get install saidar
Examples:
$ saidar
Selection_018
Enable colored output
$ saider -c
Selection_019

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
$ ss |less
Selection_020
Greb only tcp traffic
 $ ss -A tcp
Selection_021
Grab process name and pid
$ ss -ltp
Selection_022

9. ccze

A tool that decorate your logs :).
$ apt-get install ccze
Examples:
$ tailf /var/log/syslog | ccze
Selection_023
List ccze modules:
$ ccze -l
Selection_024
Save log as html.
tailf /var/log/syslog | ccze -h > /home/tux/Desktop/rajneesh.html

Selection_025

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:
$ sudo apt-add-repository ppa:fkrull/deadsnakes
Update system:
$ sudo apt-get update
Download python:
$ sudo apt-get install python3.2
$ unzip ranwhen-master.zip && cd ranwhen-master
Run the tool.
$ python3.2 ranwhen.py
Selection_026

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!

No comments: