×


Linux Resources


Disable the Network Interface on Boot in CentOS 8 - Step by step guide ?

This article covers the process of disabling the network interface, the use of the network interface, and the working of the network interface. In fact, in some situations, you might need any one of them to be disabled temporarily so that the other one can work properly. 


How do I delete an ifconfig interface ?

To delete an alias interface use:

$ ifconfig eth0:0 down 

Note: for every scope (i.e. same net with address/netmask combination) all aliases are deleted, if you delete the first (primary). 

'ifconfig eth0:0 up' flag causes the interface to be activated.


How do I restart NetworkManager in AlmaLinux ?

1. You can run the following command to restart the server networking service:

# nmcli networking off 
# nmcli networking on 

or 

# systemctl restart NetworkManager

2. Once this is done, use the following command to check the server network status:

# nmcli -o 

or

# systemctl status NetworkManager


DMIDECODE Command in Linux - How to use it ?

This article covers the usage of the DMIDECODE command in Linux. In fact, the "dmidecode" command in Linux is used for extracting all the hardware-related information of your system. 

Dmidecode stands for DMI (Desktop Management Interface) table decoder, as the name suggests it reads the data from DMI table and represents to us in human readable format. DMI table holds the system hardware details like BIOS, Serial Number, RAM(DIMMs) and CPU details etc, apart from this dmidecode can also retrieve details about the maximum system supported configuration (like DIMMs & Processors etc).


Compare Numbers in a Bash Script - How to do it ?

This article covers the methods of comparing two numbers in Bash. 


Comparison Operators for Numbers:

  • num1 -eq num2: check if 1st  number is equal to 2nd number.
  • num1 -ge num2: checks if 1st  number  is greater than or equal to 2nd number.
  • num1 -gt num2: checks if 1st  number is greater than 2nd number.
  • num1 -le num2: checks if 1st number is less than or equal to 2nd number.
  • num1 -lt num2: checks if 1st  number  is less than 2nd number.
  • num1 -ne num2: checks if 1st  number  is not equal to 2nd number.


Linux LSOF Command - Explained with Examples

This article covers the usage of the LSOF command in Linux. In fact, With lsof, you can find different processes locking up a file or directory, a process listening on a port, a user's process list, what all files a process is locking.


How to install lsof in Linux ?

lsof isn't available by default on most Linux distributions but can be easily installed. So Use the below command to install lsof:

1. For CentOS / RHEL / Fedora, run the below command:

$ sudo yum install lsof

2. For CentOS/RHEL 8, you can use the DNF command:

$ sudo dnf install lsof

3. For Ubuntu / Debian, run the below command:

$ sudo apt install lsof


How to get lsof supported options ? 

You can get a summarized list of lsof supported options using -? or -h flag:

$ lsof -?


LVEXTEND Command in Linux - Explained with Examples ?

This article covers how to extend LVM partition on the fly using lvextend command. In fact, LVM(Logical Volume Manager) provides the facility to increase and reduce the file system size. 


PASSWD Command in Linux - Explained with Examples

This article covers an overview of how to use the PASSWD command in Linux. In fact, The passwd command modifies passwords for user accounts and manages the password validity period.


What is the general command for passwd ?

passwd general command is:

$ passwd <options> <username>

The terminal prints out what user you are changing the password for. Type your current password, and then define and confirm your new password.

Search by typing a one letter Word Term Here