Quick Answer: How to Run Sh in Linux?
Contents

How do I execute a sh file in Linux?

Open a terminal window.

Type cd ~/path/to/the/extracted/folder and press ↵ Enter .

Type chmod +x install.sh and press ↵ Enter .

Type sudo bash install.sh and press ↵ Enter .

How do I run install sh?

The way professionals do it

  • Open Applications -> Accessories -> Terminal.
  • Find where the .sh file. Use the ls and cd commands. ls will list the files and folders in the current folder. Give it a try: type “ls” and press Enter.
  • Run the .sh file. Once you can see for example script1.sh with ls run this: ./script.sh.
David Miller

David Miller

Executive Financial & Market Analyst

David Miller brings 15 years of experience in global economics, personal finance strategy, and market dynamics. He specializes in turning complex economic trends into actionable insights for everyday readers.

Share this article
Twitter Facebook Pinterest