Running bash script commands with sudo permission

    0

    0

    Prince Igwe

    The preceding code is a Unix-style shell script that is executed by the sudo command. The first line of the script sets up the necessary command-line parameters. The script then calls the sudo command to run the command given on the second line.

    #!/bin/sudo bash
      ...
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.