Voltar ao blog
Arnošt Havelka

Opções DIR - Modificadores de Comando

Aprenda a usar /? para descobrir opções de comandos

Iniciar lição interativa
Opções DIR - Modificadores de Comando

Command Options and Help Switches

Every Windows command supports options (or switches) that customize its behavior. You can discover these options by appending the /? help switch to any command.

Usage:dir
[/w]
/?
Displays help for the command.
/w
Uses wide list format.
/p
Pauses after each screenful of information.

Using the Help Switch

To see all available options for the dir command, you run:

dir /?

This displays a list of all options, such as /w for wide format and /p to pause after each screenful.


Teste de conhecimentos

1 / 1

Which switch displays help and options for any command?

Referências

Estes links do Microsoft Learn e da documentação do Windows trazem detalhes confiáveis sobre os comandos usados neste artigo.

A seguir

O Comando Echo

Aprenda a falar com o terminal.