Creating a directory is a recurrent operation. This requires when working like installing the application, taking backup and restoration, managing the user’s home directory, allocate a portion to a folder for a specific purpose. You can create a directory using Ansible's built-in file module. &NewLi

Continue Reading...

To find all files containing specific text (string) on Linux, you can use the grep command with the -r (recursive) option. The grep command searches through the file, looking for matches to the pattern specified.

Continue Reading...

Prompts are used get the output based on the user input. You can use the read command in your Linux shell script to prompt for Yes/No/Cancel input from the user.

Continue Reading...

A substring is a adjacent sequence of characters within a string. In Bash, you can check if a string contains a substring using grep command and comparison methods.

Continue Reading...

Concatenation of strings is the most common process when working with string. In Bash, you can concatenate string variables using the concatenation operator + or by simply putting them next to each other.

Continue Reading...

You can check if a program exists from a Bash script using the command, type command or whish Is command followed by the name of the program you want to check.

Continue Reading...

You can use the "mkdir" command with the "-p" flag to create a directory only if it does not already exist. The "-p" flag creates any necessary parent directories if they do not exist.

Continue Reading...