3

私が使用するときmore、最も一般的にhelpはを介して、特別なことを行う特定のキーがあります(コマンドをq終了する、下にスクロールするなど)。moreEnter

PowerShell自体にこれらのキーのヘルプを取得する方法はありますか、それともGoogleで検索する必要がありますか?

4

1 に答える 1

7

morePowerhsellでは、次の定義を持つ単なる関数です。

param([string[]]$paths)
$OutputEncoding = [System.Console]::OutputEncoding

if($paths)
{
    foreach ($file in $paths)
    {
        Get-Content $file | more.com
    }
}
else
{
    $input | more.com
}

したがって、コマンドラインで、次のテキストを使用してヘルプを実行および表示できるはずです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
于 2012-04-30T17:39:01.410 に答える