Linux Resources
- Home
- Linux Resources
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.
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.
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
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).
This article covers the methods of comparing two numbers in Bash.
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.
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
You can get a summarized list of lsof supported options using -? or -h flag:
$ lsof -?
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.
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.
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.