GUID
noun
say it: “GWID” /ˈɡwɪd/ or “GOO-id” /ˈɡuɪd/
A random ID so large that no two computers will ever make the same one, written as 32 letters and digits in five groups.
What is a GUID?
A GUID (globally unique identifier, said "goo-id") is a random ID so large that no two computers will ever make the same one, so it can name something without checking a list first. Windows labels drives and apps with them, and a script can use one to give a throwaway file a name nothing else will have. In PowerShell, [Guid]::NewGuid() or New-Guid makes one.
"report-$([Guid]::NewGuid()).txt"
# report-87fdc681-1519-4bb4-b34f-ff9d2afa08b1.txt
In a sentence
- “[Guid]::NewGuid() makes a new GUID each time.”
- “Sam named the throwaway file with a GUID so two runs could never collide.”
Level: Journeyman · More Operating System terms at this level
Updated