Get-Content
noun
say it: “GET KON-tent” /ɡɛt ˈkɑntɛnt/
The PowerShell command that prints a text file's lines right in the terminal, by the file's name or path.
What is Get-Content?
Get-Content reads a file, one line at a time. -Tail shows the last lines; -Wait follows new lines.
Get-Content .\shopping-list.txt
Get-Content .\app.log -Tail 20 -Wait
In a sentence
- “I used Get-Content to read the project's README without opening another app.”
- “Get-Content printed the three lines of the itinerary.”
Level: Apprentice · More PowerShell terms at this level
Updated