Day 5 Task: Advanced Linux Shell Scripting for DevOps Engineers with User management
Tasks
- You have to do the same using Shell Script i.e using either Loops or command with start day and end day variables using arguments -
Example 1: When the script is executed as
./
createDirectories.sh
day 1 90
then it creates 90 directories as day1 day2 day3 .... day90
Example 2: When the script is executed as
./
createDirectories.sh
Movie 20 50
then it creates 50 directories as Movie20 Movie21 Movie23 ...Movie50
- Create a Script to backup all your work done till now under a specific folder.
- Read About Cron and Crontab, to automate the backup Script
Cron is the system's main scheduler for running jobs or tasks unattended. A command called crontab allows the user to submit, edit or delete entries to cron. A crontab file is a user file that holds the scheduling information.
Watch This video as a Reference to Tasks 2 and 3 https://youtu.be/aolKiws4Joc
- Read about User Management and Let me know on Linkedin if you're ready for Day 6.
- Create 2 users and just display their Usernames
90DaysOfDevOps Tasks👇