Multiple choice technology operating systems

Which variable determines the number of character positions in the output line for ls command?

  1. COLUMNS

  2. If COLUMNS is not set,current column value of the display

  3. default value of 80

  4. Both A and B

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

The 'ls' command uses the COLUMNS environment variable to determine the width of the terminal for multi-column output. If not set, it queries the terminal driver or defaults to 80. Both A and B contribute to this behavior.