How to create a directory using shell / bash program script
There might be need to create a directory on the fly sing the script . To achieve today in the shell tutorial we are creating a new file by name example.sh
Create a file example.sh
paste the below code
#!/bin/sh
mkdir "testDirectory"
How to execute shell script
in command prompt or shell mode
type sh example.sh
now check your folder location the new directory will be created
Comments
Post a Comment