How to Add User to Sudoers in CentOS
In CentOS you have two options to grant sudo access to a user. The first one is to add the user to the sudoers file. The second option is to add the user to the wheel group.
How to Use sed to Find and Replace String in Files
sed is a stream editor. With sed you can search, find and replace, insert, and delete strings and lines. It supports basic and extended regular expressions that allow you to match complex patterns.
How to Increment and Decrement Variable in Bash (Counter)
One of the most common arithmetic operations when writing Bash scripts is incrementing and decrementing variables. This is most often used in loops as a counter, but it can occur elsewhere in the script as well.
How to Set or Change Hostname in Linux
A hostname is a label assigned to a machine that identifies the machine on the network. This tutorial will walk you through the process of changing the hostname in Linux without the need of restarting the system. The steps should work on any modern Linux distribution that uses systemd.