Comment on Most file types are just a renamed .zip
cron@feddit.org 11 months agoBecause both ways are used. Microsoft relies on file names, linux on the first bytes of the file.
Comment on Most file types are just a renamed .zip
cron@feddit.org 11 months agoBecause both ways are used. Microsoft relies on file names, linux on the first bytes of the file.
p_consti@lemmy.world 11 months ago
Not quite correct. For html, that is to signal standard compliance, you can leave it away and the browser will still handle it. For the bash one, all (most) shell scripts use .sh, so you need to give a shebang to tell the loader which executable (sh, bash, zsh, csh, …) to use
cron@feddit.org 11 months ago
You’re right, my comment was oversimplified.