Question: How to Run Sh Files 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...
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 .
Must Read
How do I run a .sh file in Ubuntu?
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.