Question: Objective: Create a Bash script that performs a basic task. This exercise aims to familiarize you with writing and executing shell scripts, handling basic input
Objective: Create a Bash script that performs a basic task. This exercise aims to familiarize you with writing and executing shell scripts, handling basic input and output, and using common shell commands.
Task: Write a Bash script named createdirectory.sh that performs the following operations:
Create a Directory:
Prompt the user to enter a directory name.
Create a directory with the specified name in the current working directory.
Display a Message:
Print a message to the terminal indicating that the directory has been created successfully.
TM TMA
Page of
Fall
Requirements:
The script should be wellcommented to explain the purpose of each section and command used.
Submission:
Submit your script as a plain text file named createdirectory.sh Ensure the script is executable and tested before submission. Include a brief comment at the top of the script explaining its purpose.
Also, provide screenshots of the steps commands for changing script permissions to run it commands, and a screenshot of the new directory after finishing the bash script.
Dont want AI answer
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
