Search code examples
shellunixfile-extension

What is the difference if a shell script has ".sh" extension or not?


I have two identical shell scripts: A.sh and A.

What is the difference?


Solution

  • You can even call it A.txt. Then give it execute permission and run it. If you give a .sh extension then others can easily identify that its a shell script.