Out-Host
Handle and output
stdoutof any command within PowerShell session. Can also be used as a substitute ofmore. Note: This command can only be used through PowerShell. More information: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/out-host.
- Display a command output or variable's value into the command-line (equivalent to invoking the command or variable without
Out-Hostitself):
| Out-Host
- Display the output into an interactive paging view (will not work in PowerShell ISE):
| Out-Host -Paging
- Interactively display a text file within the paging view (equivalent to
more path/to/file):
Get-Content | Out-Host -Paging
- Go to the next page within the paging view:
<Space>
- Go to the next line within the paging view:
<Enter>
- Exit the paging view:
<q>
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
