File extension for PowerShell 3
PowerShell files for all versions are .ps1 (or .psm1, .psd1, etc.).
ComFreek
About me I am a Computer Science M. Sc. student (they/them). My research interests are knowledge representation and processing of math, and lately also programming language theory. I contribute to the MMT project (UniFormal/MMT on GitHub), a larger research software written in Scala which lets you formalize a broad range of formal knowledge: math, logic, type theory, and foundations. MMT and many of its algorithms are foundation-independent: with bare MMT, you don't even have natural numbers, let alone functions. The beauty is versatility; the challenge generality. For more info and publications, see my academic website and personal website. More hobby-wise, I am dabbling in the Coq Proof Assistant and, e.g., formalized my own flavor of an ontology language and a lambda calculus with de Bruijn indices. Programming-wise, I also fancy the latest TypeScript/ECMAScript. And I like writing/autogenerating syntax highlighters that succeed on over 15k lines of code. Feel free to reach out (by posting an issue here)! I always love hearing and chatting about cool things. Favorite answers... ...either because they are funny, stunning or the best factually correct explanation I've ever found! Simulation of a whole CPU in Conway's Game of Life SOAP overhead explained by Martin Lawrence & Big Mama Following that it is 1 of 7 (15%) I assume it was taxes. — zerkms in this comment on one downvote for six upvotes Regex series More regex fun (disclaimer: by myself) Primality testing with regex Not enough jQuery “Measuring programming progress by lines of code is like measuring aircraft building progress by weight.” — Bill Gates Some funny names other people have given me ComFreak (with "ae") CompFreek ComicFreek CornFreek ComFreeh
Updated on August 25, 2020Comments
-
ComFreek over 3 years
All of us probably know
.bat
for Batch files.But what is the file extension for PowerShell 3 scripts?
I found
.ps1
and some other endings but they're only for version 1. -
evilspoons over 9 yearsUpdate for 2014: This is still relevant now with Powershell 4. I think the 1 was really just to distinguish it from .ps (PostScript) files, but it made for a lot of confusion!
-
Geddon over 9 yearsalways wanted to know what the 1 meant. Guess it's not related to the version but pretty sure the had something to do with it when they created the file type for PS 1.0.
-
ComFreek over 9 years@Geddon I once read somewhere that they chose
ps1
to avoid conflicts withps
, which was already in use by Adobe Photoshop. Other sources say that versioning had been indeed the reason to call itps1
, but they dropped this idea when introducing PS 2 (official source). -
Barney Szabolcs over 8 yearsThis is a weird extension for sure. Why not .psh then?!
-
Tom Connery almost 5 yearsJust tried it out and it looks like
.psh
is used for HSLS sources in Visual Studio. Given that Microsoft develops VS, it seems likely that they went with.ps1
also because of that reason. -
zolty13 over 3 yearsWhy it is ps1, and not just ps?
-
Mike Shepard over 3 yearsps is a longstanding file extension for postscript files.