Forrest logo
back to context overview

get-content

List of commands for get-content:

  • get-content:tldr:07830 get-content: Display the content of a file.
    $ Get-Content -Path ${path\to\file}
    try on your machine
    explain this command
  • get-content:tldr:6a34a get-content: Display the first few lines of a file.
    $ Get-Content -Path ${path\to\file} -TotalCount ${10}
    try on your machine
    explain this command
  • get-content:tldr:89fde get-content: Display the content of the file and keep reading from it until `Ctrl + C` is pressed.
    $ Get-Content -Path ${path\to\file} -Wait
    try on your machine
    explain this command
back to context overview