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 fred01, wilma02, betty03, or barney04

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!