Comment on Most file types are just a renamed .zip
cron@feddit.org 1 month 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 1 month agoBecause both ways are used. Microsoft relies on file names, linux on the first bytes of the file.
p_consti@lemmy.world 1 month 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 1 month ago
You’re right, my comment was oversimplified.