Advanced Linux Shell Scripting
day05#90days0fdevops#trainwithshubham
Bash script createDirectories.sh that when it is executed with three given arguments (one is directory name and the second is the start number of directories and the third is the end number of directories ) it creates a specified number of directories with a dynamic directory name.
- When the script is executed as
./createDirectories.sh day 1 90
then it creates 90 directories as day1 day2 day3 .... day90


- When the script is executed as
./createDirectories.sh Movie 20 50 then it creates 50 directories as Movie20 Movie21 Movie23 ...Movie50

Creating a Script to backup all work done till now in one of the directory.
CRON:- It is the system's main scheduler for running jobs or tasks unattended.
CRONTAB:- It is a command that allows the user to submit, edit or delete entries to cron.

Here, scheduling a cron job for every 2 min


We can see that the backup file will be created in the backups directory

- Create 2 users and just display their Usernames
