Category Shell Script

Shell Scripting 101: Switch Case in Shell Scripts

Switch case in shell scripts is an efficient alternative to the if-elif-else statement we learned previously. The concept of the switch case statements is that we provide an expression for different cases (conditions) to the statement that, when fulfilled, will execute specific…

Setting Hostname in Debian

There are multiple ways of setting hostname in Debian or Linux system. You can temporarily change the hostname, or permanently apply the changes to a system. Let’s go over these methods. Setting hostname temporarily Let’s start with the temporary and…