.ps1 PowerShell-Skript

Text & Quellcode

MIME-Typapplication/x-powershell
BeschreibungPowerShell-Skript
KategorieText & Quellcode
Basiert auftext/plain

Häufige Fragen

Was ist eine .ps1-Datei?

Eine .ps1-Datei ist ein Format vom Typ „PowerShell-Skript“ (MIME-Typ application/x-powershell).

Womit öffne ich eine .ps1-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 .ps1-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.ps1 den vermuteten Typ.

Auf welchem Format basiert .ps1?

Technisch ist eine .ps1-Datei ein Untertyp von „Einfaches Textdokument“ (text/plain). Programme für dieses Grundformat können die Datei daher oft ebenfalls lesen.

Welcher MIME-Typ gehört zu .ps1?

Der MIME-Typ ist application/x-powershell. Im Apache-Webserver: AddType application/x-powershell .ps1; in nginx: types { application/x-powershell ps1; }.

Benachbarte Einträge