当我使用时more,最常见的help是,某些键可以执行特殊操作(q结束more命令,Enter向下滚动等).
PowerShell本身有没有办法获得这些密钥的帮助,还是我需要谷歌吗?
more 在Powerhsell中只是一个具有以下定义的函数:
param([string[]]$paths)
$OutputEncoding = [System.Console]::OutputEncoding
if($paths)
{
foreach ($file in $paths)
{
Get-Content $file | more.com
}
}
else
{
$input | more.com
}
Run Code Online (Sandbox Code Playgroud)
因此,在命令行中,您应该可以执行more.com /?并查看帮助,其中包含以下文本,这就是您要查找的内容:
If extended features are enabled, the following commands
are accepted at the -- More -- prompt:
P n Display next n lines
S n Skip next n lines
F Display next file
Q Quit
= Show line number
? Show help line
<space> Display next page
<ret> Display next line
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
517 次 |
| 最近记录: |