How to change home directory of a linux user

You can modify a user’s home directory using usermod command in Linux. The syntax for the usermod command is Example


How to Auto Restart ElasticSearh service on failure

If ElasticSearh service crash on your server, you can auto restart it by modifying systemd service file. This will open


Auto start Next.js with supervisor

I want to start Next.js development server on my computer when it starts. Usually, this is done using pm2, I

Cron Job fails with Error Message “(getpwnam() failed): No such file or directory”

On a CentOS server, cronjob did not work. Checking the log file found the following error message in /var/log/cron The

How to get list of User-Agent from access log

I wanted to block bots from accessing a website. For this, I need to generate a list of all browser

How to reset root password on Hetzner Dedicated Server

If you forget the root password of a Hetzner dedicated server, you need to boot the server into rescue mode,


rsyslog Unsafe symlinks encountered in /var/log, refusing

When updating packages on an Ubuntu server, I got the error “Unsafe symlinks encountered in /var/log, refusing.”. This is due

How to Split large CSV file into smaller files

To split a large CSV file into smaller parts, you can use the split command The above command will split

CentOS Error checking for OpenSSL library … not found

When installing Nginx from source on a CentOS 7 server, I got the following error To fix the error, install

Linux Disk Quota

XFS quota not working RAID 1 To check disk quota for a Linux user, run Sample

How to find Operating System of a remote computer using nmap?

Nmap is a network exploration and security auditing tool. It can be used to identify hosts and services on a



To install Terraform on Ubuntu, run For instructions on other Linux distributions, see