Top is a very powerful command to periodically display a sorted list of system processes. The default sorting key is %CPU on Linux. Below we collect 3 ways to sort processes by memory. Understanding top command in Linux The top command in Linux is used to display information about the current running processes on your …
Linux
Tcpdump command in Linux can be used to capture ICMP packets. We will start with ICMP protocol introduction and then check out how to filter ICMP and ICMPv6 packets with tcpdump command. What is ICMP? Use tcpdump to capture ICMP Packets Filtering ICMP echo reply echo request Packets Use tcpdump to capture ICMPv6 packets What …
/proc/meminfo on Linux displays current system-wide memory performance statistics. It provides the most complete view of system memory usage. Here is a detailed explanation of all the metrics. We can use these memory metrics to troubleshoot Linux memory issues. MemTotal The total amount of system physical memory. MemFree The total amount of free physical memory. …
Userdel command can be used to delete a user and related files in Linux. In most Linux distributions, the user home and mail spool directories are not removed when removing a user account with userdel. We are going through the whole process to see what happens after we run userdel command. Understanding Userdel Command The …
The tar command in Linux is used to bundle up multiple files and/or directories. It’s similar to the zip command. However, zip files are compressed by definition; tar files can be compressed, but don’t have to be. How to Use tar command on Linux The basic command for creating tar.gz files is as below: $ …
Passwd is a basic Linux command to change the user password on Linux. A root user can change the password for any account. A normal user may only change the password for their own account. We have summarized all the options for passwd command below. Lock an account with passwd command in Linux Passwd -l …
The tar command in Linux is used to bundle up multiple files and/or directories. It’s similar to the zip command. However, zip files are compressed by definition; tar files can be compressed, but don’t have to be. How tar Works in Linux The tar command in Linux stands for tape archive. It is used for …
In this blog post, we will discuss three different ways to find the largest files on a Linux system. This is a handy trick to know if you are running out of disk space and need to free up some space. We will be using the “du” command, the “find” command, and the “ls” command …
We can use this command to find out which process uses the highest CPU or Memory in Linux. # ps -eo pid,ppid,cmd,%mem,%cpu –sort=-%mem |head # ps -eo pid,ppid,cmd,%mem,%cpu –sort=-%cpu |head How to Find the Process Which Uses Most CPU The -o (or –format) option of ps allows us to specify the output format. It shows …
CPU utilization is a key metric to determine how much CPU uses for a process. Today we will review why the CPU utilization for a process is over 100%. This can help us understand how CPU works on Linux. Understanding top command in Linux In any operating system, the CPU is responsible for running the …