7 Linux useful commands for everyday System Administration

Today I’ll publish my top 7 Linux CLI commands which I use everyday for monitoring Linux server, This Article includes network monitoring, memory monitory and disk monitoring commands.

The following command will show the list of top processes ordered by RAM and CPU use in descendant form (remove the pipeline ( | ) and head if you want to see the full list):

Sample Output

Find Largest Directories in Linux

If you want to display the biggest directories in the current working directory, run:

Sample Output

Find Largest File in a folder

Sample Output

List Number of open connections per ip

Sample Output

List processes by disk I/O usage

We need iotop for this purpose.

Install IOTOP

Install iotop on Debian/Ubuntu and Mint linux

To install iotop on Debian/Ubuntu or Mint linux type following command on your terminal:

Installing iotop in RHEL, CentOS and Fedora

To install iotop on RHELCentOS and Fedora use the following yum command:

Run this command :

Sample Output

In IOTop, the processes with most usage are shown to the top of the list.

Find out what program/process is listening on port/ip address

Sample Output

In the above output, if take the first line, it tell us that a process named SSHD with PID 202479 is listening on port 22, tcp protocol, on all available system ip addresses

List processes using swap

Sample Output

0 comment



Tui là jamesblackvn!

Gửi phản hồi

Website này sử dụng Akismet để hạn chế spam. Tìm hiểu bình luận của bạn được duyệt như thế nào.