How to Find PC’s Hostname Using Linux Terminal

Show Linux hostname with hostnamectl command

Just as Internet Protocol address or IP address gives an identification to your device, similarly, hostname is another parameter through which you can recognize your device. It is a string of human understandable characters. Unlike IP address, hostname of a PC is easy to memorize and recall. For this purpose, one should always know his ... Read more

How to chmod files only on Linux

There are several ways to apply a chmod to files recursively on Linux. One of the easiest ways is to use the find command to select the files and then run the chmod command with the -exec switch. Change into the directory with cd, before you run the find command. Chmod Example 1: cd /var/www/mydirectory ... Read more

How to enable auto updates in Ubuntu

It is important to keep your Linux server up to date with security updates, Linux Distributions like Ubuntu and Debian release updates daily, so it can become a tedious job to keep the system up to date. Thankfully there is an option to install security updates automatically, here are the steps to enable automatic security updates in Ubuntu 14.04 and later versions.

Read more

Disable IPv6 networking on CentOS

Follow these steps to disable IPv6 on CentOS. Edit the /etc/sysctl.conf file, I will use the nano editor here: nano /etc/sysctl.conf And add the following line at the end of the file: net.ipv6.conf.all.disable_ipv6 = 1 Then run: sysctl -p to load the new settings. The next step is to edit the network card configuration file (/etc/sysconfig/network-scripts/ifcfg-eth*) ... Read more