Monthly Archives: September 2015

linux psacct or acct tools

Installing psacct or acct Packages psacct or acct both are similar packages and there is not much difference between them, but the psacctpackage only available for rpm based distributions such as RHEL, CentOS and Fedora, whereas acct package available for distributions like Ubuntu, Debian and Linux Mint. To install psacct package under rpm based distributions… Read More »

linux iptraf tool

Installing IPTraf IPTraf is part of the Linux distribution and can be installed on RHEL, CentOS and Fedora server’s using yum command from terminal. # yum install iptraf Under Ubuntu, iptraf can be installed using Ubuntu Software Center or ‘apt-get’ method. For example, use the ‘apt-get‘ command to install it. $ sudo apt-get install iptraf… Read More »

linux vmstat and iostat

Install Sysstat in Linux # yum -y install sysstat vmstat – Summary information of Memory, Processes, Paging etc. iostat – Central Processing Unit (CPU) statistics and input/output statistics for devices and partitions. 6 Vmstat Command Examples in Linux 1. List Active and Inactive Memory In the below example, there are six columns. The significant of… Read More »

linux netstat command

1. Listing all the LISTENING Ports of TCP and UDP connections Listing all ports (both TCP and UDP) using netstat -a option. # netstat -a | more Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 *:sunrpc *:* LISTEN tcp 0 52 192.168.0.2:ssh 192.168.0.1:egs ESTABLISHED tcp 1… Read More »

linux tcpdump Command examples

How to Install tcpdump in Linux Many of Linux distributions already shipped with tcpdump tool, if in case you don’t have it on systems, you can install it using following Yum command. # yum install tcpdump Once tcpdump tool is installed on systems, you can continue to browse following commands with their examples. 1. Capture… Read More »

linux lsof Command Examples

1. List all Open Files with lsof Command In the below example, it will show long listing of open files some of them are extracted for better understanding which displays the columns like Command, PID, USER, FD, TYPE etc. # lsof COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME init 1 root cwd DIR… Read More »

Vmstat and Iostat Linux Performance Monitoring

Install Sysstat in Linux # yum -y install sysstat vmstat – Summary information of Memory, Processes, Paging etc. iostat – Central Processing Unit (CPU) statistics and input/output statistics for devices and partitions. 6 Vmstat Command Examples in Linux 1. List Active and Inactive Memory In the below example, there are six columns. The significant of… Read More »

linux top Command Examples

In this example, it will show information like tasks, memory, cpu and swap. Press ‘q‘ to quit window. # top 2. Sorting with -O (Uppercase Letter ‘O’). Press (Shift+O) to Sort field via field letter, for example press ‘a‘ letter to sort process with PID (Process ID). Type any key to return to main top… Read More »