What is the ls option to list entries by lines instead of by columns?

  • man ls | grep -e "list one file per line" – ctrl-alt-delor Jul 14 '19 at 17:09


ls -1

command will list entries one per line. More generally, you can use the


option. Here <WORD> should be one of the words listed on the left column below:

across         -x
commas         -m
horizontal     -x
long           -l
single-column  -1
verbose        -l
vertical       -C

where the one letter options given on the right colum are just shorthands for the longer version.

| improve this answer | |

Not the answer you're looking for? Browse other questions tagged or ask your own question.