I know this is probably me being dumb, but here's what I'm confused on:
What are the suffixes called at the end of a file? ie. .txt, .php, .html, etc
What suffix does a bash file use? .bash?
Thanks for helping my stupidity to be no more.
These are called file extensions. By convention, shell scripts including Bash scripts get a .sh
extension (for "SHell script").
Note that this is not a requirement for the script to execute. You can leave it off, or give it a different file extension (such as .bashrc
for example, for the default Bash initialization script) and it will still run all the same.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With