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.