When it comes to programming, variables are a fundamental concept that you'll come across in any language. They're...
BASH Articles
The Linux Filesystem and Structure Explained
If you're new to Linux, the filesystem can seem a bit overwhelming at first. There are a lot of different directories...
Setting Up Your Local Environment for Bash Scripting
Bash scripting is a powerful tool for automating tasks and streamlining your workflow. However, before you can start...
Write a bash script to configuring basic network connectivity
In this article, we are going to configure basic network connectivity using wpa_supplicant. Prerequisites Besides...
How to executing your script on startup
This script is not limited to running only applications or services at startup, but to also start scripts on bootup...
Write a file-in-file-out program in bash and running processes in parallel
In this script, we use a concept called file-in-file-out (FIFO), also known as pipes, to pass along a parameter to...
Write a bash script to leveraging timeout when waiting for command completion
Sometimes, waiting for a command to finish execution or ignoring commands until completion might not be considered a...
Write a bash script for using temporary files and lock files in your program
Another mechanism or component programs and scripts often use is called a lock file. It’s usually temporary (it...
Write a bash script for generating and trapping signals for cleanup
You have probably pressed Ctrl + C or Ctrl + Z without knowing what was occurring—it’s just like...
Write a bash script to making a simple multi-level user menu using select
Select works using a provided list (for example, it can be a wildcard selection for files) and will give you a list,...
Write bash script for sanitizing user input and for repeatable results
One of the best practices for scripts (or programs, for that matter) is controlling user input, not only for security,...
Write a bash script to keep programs/scripts running after logoff
Leading up to getting our scripts to run as daemons, we need to know how to keep commands running after a user logs...