Ubuntu: How to Change the Passphrase of an SSH Key
Introduction Secure Shell (SSH) keys are a popular means for authenticating users on Linux systems securely. SSH keys are often protected with a passphrase to add an extra…
Understanding ‘stdin’, ‘stdout’ and ‘stderr’ in Linux
Introduction Linux is renowned for its efficiency and flexibility when handling processes. A fundamental concept that facilitates this is the standard streams, namely stdin, stdout, and stderr. Each…
How to Auto-Reboot a Ubuntu Server When Running Out of Resources
Overview One essential task in server management is ensuring that your server remains operational and does not succumb to resource depletion. Automating the reboot of an Ubuntu server…
Forget Ubuntu root password? Here’s how to reset it
Introduction Forgetting the root password on your Ubuntu system can feel like being locked out of your own home. But fear not, regaining access to your system is…
How to lock/unlock a directory in Ubuntu
Introduction When working with Ubuntu, you might come across scenarios where you need to prevent unauthorized access to certain directories. This tutorial will walk you through multiple methods…
How to use if-then statement in Bash scripting
Introduction Bash scripting is a powerful tool for automating tasks in Linux and Unix-like operating systems. One of the fundamental concepts in any programming language, including Bash, is…
How to use ‘do-while’ loop in Bash scripting
Introduction Bash scripting offers multiple ways to perform repetitive tasks, amongst which while and until loops are quite common. However, sometimes programmers from other languages like C or…
Ubuntu: How to Ping a Remote Server/IP Address
Introduction Pinging is a fundamental network command used to test the reachability of a host on an Internet Protocol (IP) network and measure the round-trip time for messages…
How to check shell history in Ubuntu
Introduction Checking the shell history in Ubuntu can be quite useful for recalling commands, learning user activity, and for general system administration tasks. The shell or command line…
Shell Scripting in Ubuntu: The Comprehensive Cheat Sheet
Introduction Shell scripting in Ubuntu allows automation of repetitive tasks, improves productivity, and enhances the functionality of the system. This comprehensive guide is designed to introduce you to…