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 create_directory.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.
TM129/ TMA
Page 4 of 5
Fall 2024/2025
Requirements:
The script should be well-commented to explain the purpose of each section and command used.
Submission:
Submit your script as a plain text file named create_directory.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
Objective: Create a Bash script that performs a

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!