system-administration

Mount Filesystem with systemd on RHEL, Rocky Linux, AlmaLinux, CentOS Stream and Oracle Linux

Mount a local filesystem with a systemd mount unit on RHEL 8–10, Rocky Linux, AlmaLinux, CentOS Stream and Oracle Linux without editing fstab.

Deepak Prasad8 min read
system-administration

Fixing 'SSH: No Route to Host' Error

The "SSH: No route to host" error to be honest can occur n number of issues. There is no specific one solution which will work for all scenarios. So in this

Deepak Prasad9 min read
system-administration

Chrony Force Sync in Linux

Learn how to force Chrony time sync in Linux using chronyc makestep and chronyd -q. Also configure Chrony as an NTP client or server, check sync status, and understand server options like iburst, minpoll, and maxpoll.

Deepak Prasad8 min read
system-administration

How to Check Filesystem Type in Linux

Learn how to check filesystem type in Linux for mounted paths, disks, partitions, LVM volumes, USB drives, ISO media, and unmounted filesystem images with tested findmnt, lsblk, blkid, df, file, stat, udevadm, fstab, …

Deepak Prasad9 min read
system-administration

Systemd Tutorial for Beginners: Units, Services, Targets, and systemctl

Learn what systemd is in Linux and how to use systemctl to check system state, list services, inspect units, view targets, read logs, verify unit files, and test transient services with practical tested examples.

Deepak Prasad10 min read
system-administration

Create cron job or schedule jobs using bash scripts in Linux or Unix

How to update crond using a shell script? Schedule cron job using command line bash shell script in Linux? Create cron job using crontab shell script Unix

Deepak Prasad3 min read
system-administration

Steps to configure NFS server & client in RHEL/CentOS 7/8

Step by Step NFS configuration Guide to install and configure NFS server in RHEL/CentOS 7/8. NFS server tutorial. How to check NFS status in Linux. setup nfs server

Deepak Prasad16 min read
system-administration

How to Clear System Storage on Mac Using Terminal (Advanced Guide)

Learn how to clear system storage on Mac using terminal commands. This advanced guide covers disk usage analysis, cache cleanup, log removal, and troubleshooting system data taking excessive space on macOS.

Deepak Prasad5 min read
system-administration

4 ways to SSH & SCP via proxy (jump) server in Linux

You can use either ProxyCommand or ProxyJump with ssh and scp respectively to connect target host or transfer files through any jump host with examples.

Deepak Prasad4 min read
system-administration

Add Linux to Windows Domain using realm (CentOS/RHEL 7/8)

Step by step guide to add linux to windows Domain (Active Directory) using Realm tool on RHEL/CentOS 7/8. Join linux to windows domain. sssd active directory centos 7.

Deepak Prasad10 min read
system-administration

Linux sftp restrict user to specific directory | setup sftp chroot jail

how to configure sftp server in linux step by step to sftp restrict user to specific directory in Linux Setup sftp chroot jail with authorized_keys passwordless

Deepak Prasad18 min read
system-administration

How to run script with systemd at shutdown only (not at reboot)

Steps to run script with systemd at shutdown only with examples in CentOS/RHEL 7/8 in Linux. Run script or command before shutdown but not at reboot

Deepak Prasad4 min read
system-administration

How to run script after N minutes of boot with systemd CentOS/RHEL 7/8

How to execute command or run script after N minutes of boot using systemd timer in CentOS/RHEL 7/8 Linux fix systemctl failing with unknown section 'Timer'

Deepak Prasad6 min read
system-administration

How to read user input during boot stage with systemd in Linux

Shell script to read user input during boot stage in Linux with a systemd service in CentOS/RHEL 7/8 Linux. Take input at the startup script in Linux.

Deepak Prasad5 min read
system-administration

How to run script on startup using systemd in Linux

How to execute and run script at startup after N minutes with delay using systemd and without cronjob in CentOS/RHEL 7/8 Linux before login prompt appears

Deepak Prasad7 min read
system-administration

How to run script with systemd right before shutdown in Linux

Steps to execute and run script with systemd right before shutdown in CentOS/RHEL 7/8 Linux. Use Before=shutdown.target to execute command before shutdown

Deepak Prasad3 min read
system-administration

How to run script with systemd right before login prompt in CentOS/RHEL 7/8

How to execute or run script with systemd right before login prompt in CentOS/RHEL 7/8 Linux between rc-local.service and getty.target in service unit file

Deepak Prasad5 min read
system-administration

Understanding systemd-journald and how logging works with Journal in RHEL 7

An overview on systemd-journald service, how logging happens in RHEL 7 Linux with Journals and systemd-journald logrotate. Compare systemd-journald vs rsyslogd

Deepak Prasad8 min read
system-administration

How to enable persistent logging in systemd-journald without reboot

Enable persistent logging in systemd-journald by changing storage type to persistent in journald.conf to store logs in /var/log/journal without reboot

Deepak Prasad4 min read
system-administration

How to mount partition using systemd unit file?

Steps to automount file system using systemd automount unit file without /etc/fstab to automatically mount and unmount file system in rhel/centos 7 and 8

Deepak Prasad9 min read
system-administration

How to force file system check on boot: systemd-fsck RHEL/CentOS 7/8

Creating /forcefsck and /fsckoptions doesn't work on CentOS/RHEL 7/8 Linux How to perform force file system check on boot (next reboot) using systemd-fsck?

Deepak Prasad4 min read
system-administration

How to start systemd service after NFS mount in Linux

How to execute a script after a network file system is mounted? How to start a systemd service only after NFS share is mounted and available in Linux

Deepak Prasad8 min read
system-administration

How to access VirtualBox shared folder at startup with systemd in Linux

How to mount Oracle VirtualBox shared folder using systemd unit file at system startup? How to execute a script during reboot on the shared folder from Vbox using systemd?

Deepak Prasad9 min read
system-administration

Create systemd service in Linux [Explained with Example]

Step by Step instructions to create systemd service in Linux. Detailed explanation of all the field in systemd service unit file

Deepak Prasad8 min read
system-administration

sshd: ssh-rsa algorithm is disabled

We recently upgraded our Base OS and there we starting facing this issue where all SSH connection via RSA Key started to fail with error "sshd: ssh-rsa

Deepak Prasad4 min read
system-administration

What is SSH Multiplexing and How to use Securely?

This tutorial covers SSH Multiplexing, explaining its benefits, setup, and use cases. We'll guide you through configuration steps, security best practices, and optimization techniques to enhance your SSH operations …

Omer Cakmak12 min read
system-administration

Solved: Error populating transaction, retrying RHEL/CentOS 7/8

How to fix starting package installation process error populating transaction, anaconda is retrying faced during RHEL/CentOS 7/8 installation in Linux

Deepak Prasad4 min read
system-administration

How to configure VLAN with bond using kickstart in Linux (CentOS/RHEL 7)

How to configure vlan with bond using kickstart in RHEL/CentOS 7. You can configure using network --vlan or using %post section of kickstart with examples.

Deepak Prasad4 min read
system-administration

Kickstart %pre script examples in RHEL CentOS 7 8

Use kickstart %pre script examples to perform tasks before installing the system. Use --interpreter, --log, chroot and nochroot options with %pre script RHEL/CentOS 7/8

Deepak Prasad5 min read
system-administration

Kickstart post install script examples in RHEL CentOS 7 8

Use kickstart post install scripts to perform tasks after installation, save logs, use interpreter with and without nochroot in RHEL and CentOS 7/8 Linux with examples

Deepak Prasad5 min read