Table of contents
- Q.1) Write a bash script createDirectories.sh that when the script is executed with three given arguments (one is directory name and second is start number of directories and third is the end number of directories ) it creates specified number of directories with a dynamic directory name.
- Q.2) Create a Script to back up all your work done till now?
- Backups are an important part of DevOps Engineers' day to Day activities.
- Q.3)What is Cron and CronTab?
- Q.4) What is User management?
Q.1) Write a bash script createDirectories.sh that when the script is executed with three given arguments (one is directory name and second is start number of directories and third is the end number of directories ) it creates specified number of directories with a dynamic directory name.
When the script is executed as
./
createDirectories.sh
Movie 20 50
then it creates 50 directories as Movie20 Movie21 Movie23 ...Movie50
Q.2) Create a Script to back up all your work done till now?
Backups are an important part of DevOps Engineers' day to Day activities.
Q.3)What is Cron and CronTab?
Cron is the service in Linux that helps the user to perform actions on scheduled time. The user command to work with the cron service is known as the crontab cron table. The crontab is a list of commands that we want to run on a regular schedule. Crontabs hold the configurations for which service to run and when it should run. 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.
Q.4) What is User management?
User management is the process of controlling and managing the user accounts and their access rights to various resources in a computer system. This involves creating, modifying, and deleting user accounts, as well as assigning or revoking privileges or permissions for users.
To create a user account #useradd Nilesh.
For logout from the user account #exit
For switching user account #su Nilesh
To check user account properties #sudo cat /etc/passwd
To delete a user account #userdel Nilesh
To create a user account password #passwd NIlesh123
Create 2 users and just display their Usernames
sudo useradd Rohit
sudo useradd Dipak
cat /etc/passwd - display Usernames
Thank you so much for reading my article.
If you find my blog valuable, I invite you to like, share, and join the discussion. Your feedback is immensely cherished as it fuels continuous improvement. Let's embark on this transformative DevOps adventure together! 🚀 #devops #90daysofdevops #trainwithshubham #tws #LearningTogether #connections #community #Linux #LinuxCommands.