News

Here, docs/ is an argument that tells ls which file to list. The command will run its default action: display the names of ...
Batch editing photos in Linux can be done using the ImageMagick program. ImageMagick is a free tool for creating and editing ...
Or, maybe you want to set a URL as an environment variable to work with a script. You could set the MY_SITE variable as, say, techrepublic.com, and use the variable in a bash script.
Incrementing variables using Loops If you want to loop through a series of commands in a script, you can increment a numeric variable to determine when the loop will end. The for loop shown below ...
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 ...
How to Set Environment Variables Permanently When you can create environment variables using the previous method, they are only valid for the current session. The moment you log out of the Linux ...
You can easily generate a random number at the bash prompt, which you can then use to set said number as a variable. This is useful for everything from writing certain types of scripts to running ...
You can store Linux commands as variables in shell scripts by using the syntax: VARIABLE_NAME=$ (COMMAND_TO_BE_EXECUTED). Once you have saved the Linux command as a variable in the shell script, you ...
Variable - List Of Elements You can create a list of elements in a variable. If you take a look at the below definition, I have created a list variable in two ways. Standard YAML way of defining a ...