.sh Shell script
Tekst & broncode
| MIME-type | application/x-shellscript |
|---|---|
| Beschrijving | Shell script |
| Categorie | Tekst & broncode |
| Gebaseerd op | application/x-executable, text/plain |
Veelgestelde vragen
Wat is een .sh-bestand?
Een .sh-bestand is een formaat van het type „Shell script” (MIME-type application/x-shellscript).
Waarmee open ik een .sh-bestand?
Met elke teksteditor – bijvoorbeeld Notepad++, Visual Studio Code of onder Linux gedit en vim. Het bestand bevat leesbare tekst, mogelijk broncode of configuratie.
Hoe herken je een echt .sh-bestand?
Voor dit formaat is geen vaste signatuur aan het begin van het bestand vastgelegd; het wordt vooral aan de extensie herkend. Onder Linux en macOS toont file --mime-type example.sh het vermoedelijke type.
Op welk formaat is .sh gebaseerd?
Technisch is een .sh-bestand een subtype van „Executable” (application/x-executable). Programma’s voor dat basisformaat kunnen het bestand daarom vaak ook lezen.
Welk MIME-type hoort bij .sh?
Het MIME-type is application/x-shellscript. In de Apache-webserver: AddType application/x-shellscript .sh; in nginx: types { application/x-shellscript sh; }.