Linux Tip: Display ‘ls’ Output In Columns
If you are redirecting the output of ls to a file, it will output a single file per line. Use the -C option to have ls output its usual column format
A Software Blog from Marcos Savoury
If you are redirecting the output of ls to a file, it will output a single file per line. Use the -C option to have ls output its usual column format