.sh Shell-Skript
Text & Quellcode
| MIME-Typ | application/x-shellscript |
|---|---|
| Beschreibung | Shell-Skript |
| Kategorie | Text & Quellcode |
| Basiert auf | application/x-executable, text/plain |
Häufige Fragen
Was ist eine .sh-Datei?
Eine .sh-Datei ist ein Format vom Typ „Shell-Skript“ (MIME-Typ application/x-shellscript).
Womit öffne ich eine .sh-Datei?
Mit jedem Texteditor – etwa Notepad++, Visual Studio Code oder unter Linux gedit und vim. Die Datei enthält lesbaren Text, ggf. Quellcode oder Konfiguration.
Woran erkennt man eine echte .sh-Datei?
Für dieses Format ist keine feste Signatur am Dateianfang hinterlegt; erkannt wird es vor allem an der Endung. Unter Linux und macOS zeigt file --mime-type example.sh den vermuteten Typ.
Auf welchem Format basiert .sh?
Technisch ist eine .sh-Datei ein Untertyp von „Ausführbare Datei“ (application/x-executable). Programme für dieses Grundformat können die Datei daher oft ebenfalls lesen.
Welcher MIME-Typ gehört zu .sh?
Der MIME-Typ ist application/x-shellscript. Im Apache-Webserver: AddType application/x-shellscript .sh; in nginx: types { application/x-shellscript sh; }.