3
respostas

PowerShell ```more``` cmdlet

Recentemente descobri o cmdlet more, não sei ao certo de é um cmdlet

Uso: Get-Help | More

e o resultado será paginado

    PowerShell Help System

SHORT DESCRIPTION
    Displays help about PowerShell cmdlets and concepts.

LONG DESCRIPTION
    PowerShell Help describes PowerShell cmdlets,
    functions, scripts, and modules, and explains concepts, including
    the elements of the PowerShell language.

    PowerShell does not include help files, but you can read the
    help topics online, or use the Update-Help cmdlet to download help files
    to your computer and then use the Get-Help cmdlet to display the help
    topics at the command line.

    You can also use the Update-Help cmdlet to download updated help files
    as they are released so that your local help content is never obsolete.

    Without help files, Get-Help displays auto-generated help for cmdlets,
    functions, and scripts.


  ONLINE HELP
    You can find help for PowerShell online in the TechNet Library
    beginning at http://go.microsoft.com/fwlink/?LinkID=108518.

    To open online help for any cmdlet or function, type:
-- More  --

aguardando que eu aperte Enter para exibir a próxima página.

Dúvida: Existe uma maneira de habilitar este comportamento por padrão no PowerShell, não fui capaz de encontrar isto no Google

3 respostas

Hm, qual comportamento Rubens? Desculpa, não sei se entendi bem...

O comportamento de paginação do output no powerShell, pra não ter de terminar todo comando com | more

Hm, talvez com uso de aliases Rubens, dá uma olhada: https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/set-alias?view=powershell-6

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software