Sunday, May 5, 2024
10
rated 0 times [  10] [ 0]  / answers: 1 / hits: 2220  / 2 Years ago, mon, june 13, 2022, 3:31:22

commands ls and ls -C seem to produce the same results - display by columns.



Is there any difference?


More From » command-line

 Answers
4

Referring to info coreutils 'ls invocation':



-C' --format=vertical'


List files in columns, sorted vertically. This is the default for
ls if standard output is a terminal
. It is always the default for the dir program. GNU ls uses variable width columns to display as many files as possible in the fewest lines.



TL;DR: no, no difference - that's default.


[#17777] Tuesday, June 14, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
admin

Total Points: 459
Total Questions: 112
Total Answers: 109

Location: Equatorial Guinea
Member since Sun, Feb 14, 2021
3 Years ago
;