How do I read a .sh file in Linux?

How do I read a .sh file in Linux?
Answer
The way professionals do it
  1. Open Applications -> Accessories -> Terminal.
  2. 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. …
  3. Run the .sh file. Once you can see for example script1.sh with ls run this: ./script.sh.
 

Tìm kiếm

Back
Top