Shell Script

The sprintf() Function In C/Linux

The sprintf() function belongs to the printf() family of functions. In this module, we are going to discover more about this function and how we can use it in our programs. Defining the sprintf() function The Linux Man Pages for sprintf() defines it as : Basically sprintf() stands for “String Print”. Unlike standard printf() which

The sprintf() Function In C/Linux Read More »

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 simple method. The hostname command in Debian allows you to set up the system hostname

Setting Hostname in Debian Read More »