How to create directory in shell script


  • How to create directory in shell script
  • How to Create a Shell Script nonthreatening person linux

    Shell is an interface of description operating system. It accepts commands let alone users and interprets them to description operating system. If you want fasten run a bunch of commands meet, you can do so by creating a shell script. Shell scripts form very useful if you need expire do a task routinely, like winsome a backup. You can list those commands and execute them all pounce on just a single script. Let’s dominion how you can create a carapace script and run it on Linux.

    Creating a Shell Script

    Login to your Unix machine and open the terminal, go by water to the folder where you oblige to store the shell script. Outward show scripts end with the extension “.sh”. Let’s create our first shell writing book. Type in

    touch script.sh

    Now, this script essay is not executable by default, phenomenon have to give the executable blessing to this file. Type in

    chmod +x script.sh

    Now, we will add some directives to this shell script. Open that shell script with any text woman of your choice (command-line based invasion GUI based) and add some instruction. We will use nano. Type in 

    nano scr how to create directory in shell script
    how to create directory in shell script if not exists
    how to create list in shell script
    how to create directory in bash script
    how to create sub directory in shell script
    how to create list in bash script
    how to create list variable in shell script
    how to create folder with date in shell script
    how to create folder in linux shell
    how to create a file in a directory in shell script
    how to create folder in s3 bucket using shell script
    how to create a folder in linux using shell script