Question: Create a shell script that performs the following: Prompt the user to enter a username to remove that user account. If the input is a
Create a shell script that performs the following:
Prompt the user to enter a username to remove that user account.
If the input is a valid user, then
remove that user's account and its home directoryDisplay an appropriate message
Else display an appropriate message.
Save the script as removeaccount.sh file.
Test your script using either fred wilma betty or barney
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
