Must be written in Bash#! bin/bash Write a separate script for each 1. Create User Accounts (Probably best run in VM) Take a filename as a parameter XXXXXXXXXXContains usernames 1 per line Create a...

Must be written in Bash#! bin/bash

Write a separate script for each 1. Create User Accounts (Probably best run in VM) Take a filename as a parameter XXXXXXXXXXContains usernames 1 per line Create a user account for each user Set a default password for the user XXXXXXXXXXAsk for the password from the user during the run 2. Batch Renaming Directory full of files Rename all of the files with a prefix given as a script parameter XXXXXXXXXXi.e. ./rename.sh Image Rename files with a number XXXXXXXXXXimage XXXXXXXXXXimage XXXXXXXXXXArchiver Takes a directory as a script parameter Zip any file that hasn't been modified in over a week XXXXXXXXXXUse the find command and –mtime argument Name the new zip with the current date 4. Systeminfo Script Menu that asks which information the user would like to see User selects a choice ------- XXXXXXXXXXMenu: ------- XXXXXXXXXX1. OS Info XXXXXXXXXXHostname XXXXXXXXXXNetwork info XXXXXXXXXXIP Address only XXXXXXXXXXUsers logged in XXXXXXXXXXDisk Usage XXXXXXXXXXProcess list XXXXXXXXXXExit XXXXXXXXXXEnter your choice [ 1 - 8 ] Useful commands XXXXXXXXXXuname XXXXXXXXXXhostname XXXXXXXXXXnetstat / ss XXXXXXXXXXifconfig / ip XXXXXXXXXXwho XXXXXXXXXXdf


#! Bin/bash


Write a separate script for each




1. Create User Accounts (Probably best run in VM)



Take a filename as a parameter



Contains usernames 1 per line



Create a user account for each user



Set a default password for the user



Ask for the password from the user during the run




2. Batch Renaming



Directory full of files



Rename all of the files with a prefix given as a script parameter



i.e. ./rename.sh Image



Rename files with a number



image01



image02



...




3. Archiver



Takes a directory as a script parameter



Zip any file that hasn't been modified in over a week



Use the find command and –mtime argument



Name the new zip with the current date






4. Systeminfo Script



Menu that asks which information the user would like to see



User selects a choice





------------------



Menu:



------------------



1. OS Info



2. Hostname



3. Network info



4. IP Address only



5. Users logged in



6. Disk Usage



7. Process list



8. Exit





Enter your choice [ 1 - 8 ]





Useful commands



uname



hostname



netstat / ss



ifconfig / ip



who



df







May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here