Shell Script instance —— create folder
1, First create a new one mkdir.sh file (mkdir It's just a name , It can be modified by yourself )
2, Preparation of documents
vim mkdir.sh #!/bin/bash echo "Please enter a name for a new folder:" read
name mkdir $name echo "I have make a folder named $name for you!!"
3, View results