Solved: How to reset root password in Redhat Linux or CentOS

In this post we will discuss how to reset the root password of a Redhat linux server if you forgot it.

  • Reboot the server
  • While you are at boot menu press “Up or Down” arrow key to prevent system from booting.
  • Select the boot device and press “e” to edit it.(refer Image 1)

Continue reading “Solved: How to reset root password in Redhat Linux or CentOS”

Enjoy the gift of learning! Find your next course for as low as $11.99

Solved: How to use nmcli for adding new IP and managing network in Redhat Linux

In our last post we have seen how to use nmtui for network management. In this post we will see how to use nmcli for doing the same activity.

“nmcli” is a command line interface. Benefit with both nmtui and nmcli is that you don’t have to update the network configuration files manually. All the required changes are done by nmtui and nmcli themselves.

Good thing with nmcli is that you don’t have to install any extra package like nmtui. nmcli is generally included with NetworkManager.

Enjoy the gift of learning! Find your next course for as low as $11.99

Continue reading “Solved: How to use nmcli for adding new IP and managing network in Redhat Linux”

Solved: How to change hostname using nmtui or nmcli in redhat linux

In our last post we have seen how to change hostname manually or with hostnamectl .

In this post we will discuss how to change hostname with nmtui and nmcli tools.

Enjoy the gift of learning! Find your next course for as low as $11.99

Continue reading “Solved: How to change hostname using nmtui or nmcli in redhat linux”

What are the maximum number of usable partitions in a disk in Linux

Linux can generally have two types of Disks. IDE and SCSI.

IDE

By convention, IDE drives will be given device names /dev/hda to /dev/hdd. Hard Drive A (/dev/hda) is the first drive and Hard Drive C (/dev/hdc) is the third.

Enjoy the gift of learning! Find your next course for as low as $11.99

Continue reading “What are the maximum number of usable partitions in a disk in Linux”

Solved: How to add swap space in Redhat or Ubuntu Linux

In this post  we will see how we can add a file as swap space in Linux. Same steps are to be followed for Redhat and Ubuntu Linux.

Type the following command to create 100MB swap file (1024 * 100MB = 102400 block size):

dd if=/dev/zero of=/swap1 bs=1024 count=102400

Secure swap file

Enjoy the gift of learning! Find your next course for as low as $11.99

Continue reading “Solved: How to add swap space in Redhat or Ubuntu Linux”

How to add logical volume for swap in Redhat Linux

In our last post we have seen how to add a file for swap space.

In this post we will see how to add a LVM2 Logical Volume as swap.

Here we have a VG name VG1 in which we will create a volume LV1 of 1GB.

Enjoy the gift of learning! Find your next course for as low as $11.99
# lvcreate VG1 -n LV1 -L 1G

Format the new swap space using mkswap:

Continue reading “How to add logical volume for swap in Redhat Linux”