Don't expose your system with sloppy scripts! Although a Linux desktop or server is less susceptible to viruses and malware than a typical Windows device, there isn't a device on the internet that isn ...
Bring your GitHub repository to the next level of functionality. For the past year since Microsoft has acquired GitHub, I've been hosting my Git repositories on a private server. Although I relished ...
Attaching a remote drive or directory on a Windows box is called “drive mapping” though the process is essentially the same as what we call mounting in the Unix world. While I rarely spend any ...
The Linux expect command takes script writing to an entirely new level. Instead of automating processes, it automates running and responding to other scripts. In other words, you can write a script ...
How to use a Bash script for-loop for system administration in Linux Your email has been sent Bash scripting remains a staple of my endeavors in Linux as a system administrator, and I use it every day ...
You normally think of a critical section — that is, a piece of a program that excludes other programs from using a resource — as a pretty advanced technique. You certainly don’t often think of them as ...
Each Linux command returns an exit code, with 0 indicating success and non-zero values indicating failure. You can use the $? variable to access the exit code and control program flow in scripts. Be ...
All kinds of things can go wrong with your shell scripts, but they don't have to. Let's look a some debugging tips that can help ensure your scripts run the way you intend. The first step in debugging ...