News

The export command is used to set environment variables in the current shell session or to export variables to child processes. When a variable is exported using the export command, it becomes ...
Contribute to iwbandara/linux_tutorials development by creating an account on GitHub.
Spread the loveAs a Linux user, you might frequently come across the term Environment Variables. If you’re curious what they are and how they work, then you’re in the right place. Environment ...
A lot of important values are stored on Linux systems in what we call “variables,” but there are actually several types of variables and some interesting commands that can help you work with ...
Testing variables There are quite a few ways to test the values of variables, but the operators you need to use depend on whether you’re comparing numbers or strings.
Try this snippet to see what I'm talking about: echo "arg1 = $1" ; shift ; echo "now arg1 = $1" The variable $0 is a special one in this sequence. It's the name of the script or program invoked. This ...