Multiple choice

Which command will instruct DOS to list only filenames and extensions and omit all other information in the directory listing?

  1. DIR/On

  2. DIR/S

  3. DIR/B

  4. DIR/P

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

DIR /B (bare) displays only filenames and extensions, omitting date, time, and size information. This is useful for batch operations and quick file listings. DIR /S searches subdirectories, DIR/P pauses after each screen, and DIR/On sorts by name.