CMD Master
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

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

Experimente o comando

Try using dir /? or dir /w to see options!

Montar o comando
dir
Terminal
C:\Users\Student>dir /?
DIR Displays a list of files and subdirectories in a directory. DIR [drive:][path][filename] [/A] [/B] [/O:{D | -D}] [/P] [/S] [/W]

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 de documentação trazem detalhes confiáveis sobre os comandos usados neste artigo.

A seguir

O Comando Echo

Aprenda a falar com o terminal.