1) Write a bash script createDirectories.sh that when the script is executed with three given arguments (one is the directory name and second is the start number of directories and third is the end number of directories ) it creates a specified number of directories with a dynamic directory name.
This script will create a series of directories with names that are formed by concatenating the value of the variable “$1" with the values of the variable “$i” as it iterates through a range of values specified by “$2” and “$3”.
The script uses a “for” loop to iterate through the range of values specified by “$2” and “$3”. The loop variable “$i” is initialized to the value of “$2”, and the loop continues until “$i” is greater than “$3”. The body of the loop creates a new directory using the “mkdir” command and the value of “$1” concatenated with the value of “$i”
It will create the following directories.
2) Create a Script to backup all your work done till now
3) 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.
Cron is a daemon that runs in the background on Unix-like operating systems, including Linux and macOS. It allows you to schedule tasks to be automatically run in the background at a specified time or interval.
Crontab is a command that allows you to edit the cron table, which is a list of commands that are scheduled to run at specified times. Each line in the cron table represents a separate task, and consists of the following fields:
4) About User Management
User management is the process of creating, modifying, and deleting user accounts on a computer system or network. It involves tasks such as setting passwords, permissions, and privileges for users, and is typically done using special tools provided by the operating system. User management is an important aspect of system administration, as it allows you to control who has access to the system and what actions they are allowed to perform
5) Create 2 users and just display their Usernames
Thanks for Visiting on Hashnode , Pls follow for more such blogs.