LINUX COMMANDS

This category covers topics including various linux command line utilities and its uses.

14 tcpdump Commands to Capture Network Traffic in Linux

tcpdump linux commands

Tcpdump is a network troubleshooting command which is also known as a packet sniffer is used to capture and display packets from a network. tcpdump allows users to capture and display TCP/IP and other packets being transmitted or received over the network to [...]

Alain Francois 1:20 am

16 Tar Commands to Compress and Extract Files in Linux

tar compress extract linux

Tar is a command line tool used to create and manipulate archive files in Linux and Unix systems. Tar can extract from tar, pax, cpio, zip, jar, ar, and ISO 9660 cdrom images and can create respective archives. Below is [...]

Josphat Mutai 1:02 am

How to Limit Process at User Level on Linux

limit process user linux

Ulimit, as the name signifies, is the user resource limits defined by users for their respective processes. It provides control over the resources available to the shell and to processes started by it, on systems that allow such control. That [...]

Alain Francois 2:00 am

How to Check Execution Time of a Process in Linux

linux process execution time

Have you been wondering how you can find an execution time of a process in Linux or Unix system?. This guide will show you a number of tools which comes in handy when trying to find execution time of a [...]

Josphat Mutai 2:12 am

fkill - Interactive Tool to Kill Processes in Linux

fkill Interactive tool kill processes

In this guide, I'll demonstrate how you can use fkill-cli to easily kill a process on Linux. fkill-cli is a command line tool written in Nodejs which makes process management on Linux, macOS, and Windows simpler. It provides a guided way [...]

Josphat Mutai 12:47 am

How to Use Truncate Command in Linux

linux truncate command

Welcome to our guide on how to use Truncate Command in Linux. The Linux truncate command is often used to shrink or extend the size of each FILE to the specified size. The final size of the file depends on [...]

Josphat Mutai 12:05 am

How to List Installed Packages by Size on CentOS/Fedora/Arch Linux

list size installed packages

Sometimes, you may need to keep track of your system's hard drive space especially if it's a cloud instance that's hosted on Amazon EC2, Linode, Digital Ocean or on your physical server.  You may be tempted to think that it's only [...]

Jamie Arthur 12:05 am

How to Exclude Specific Packages from Yum Update

yum exclude package

In this article, we'll show you how to exclude specific packages from updating using Yum package manager. Periodically, you may want to update your CentOS or RHEL system but leave out certain packages especially if the updates are likely to [...]

Jamie Arthur 12:05 am

How to Reset Linux Password to Expire after Number of Days

chage command - Reset password expire N days

Best System administration practice requires a periodic change of passwords for any operating system, and Linux is no exception. This is for security reasons. However, most users do not take heed of this and continue to use the same passwords [...]

Jamie Arthur 12:05 am

How to Install Specific Version of Package on CentOS & RHEL 7

yum install specific packages

Sometimes, you may need to have a certain version of a package installed on your system to conform to a certain requirement. In this article, we are going to see how we can install specific versions of packages using yum package [...]

Jamie Arthur 12:05 am

How to Install Specific Version of Package using apt-get

apt-get install specific package

To handle Debian-based system packages, we use the apt-get command. This command requires administrative rights to work. It contains several options that make it possible to manipulate the packages through some operations like the installation, update or deletion, and many [...]

Alain Francois 12:05 am

How to Use DNF History to List Manually Installed Packages

dnf history command

Once in a while, as a Linux user, you may want to conduct an audit of the status of various installed packages on your Linux machine. The main purpose is to keep track of the packages installed and those that [...]

Jamie Arthur 12:05 am

How to Use Semanage Command for SELinux Policy

Semanage Command

Semanage is a tool used to configure certain elements of SELinux policy without modifying or recompiling policy sources. This includes mapping Linux usernames to SELinux user identities and security context mappings for objects like network ports, interfaces, and hosts. By [...]

Eyram Amedzor 12:05 am

4 Commands to Wipe Disk on Linux

linux wipe disk commands

Sometimes you can need to delete or format a hard drive for some operations. The most common use case for completely and irrevocably wiping a device will be when the device is going to be given away or sold as [...]

Alain Francois 8:40 am