In PowerShell, how do I get help using more commands?

When I use more, most often through help, there are certain keys that do special things ( qcompletes a command more, Enterscrolls, etc.).

Is there a way in PowerShell to get help on these keys myself, or do I need it to be on Google?

+3
source share
1 answer

more in Powerhsell, it's just a function with the following definition:

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

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

So, on the command line, you can do more.com /?and see the help with the following text in it that you are looking for:

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
+7
source

All Articles