How to get a list of file names in different lines
ls -1
That is a number, not small L
.
solution without pipe-ing :-)
ls --format single-column
Note that the long options are only supported on the GNU coreutils where BSD ls only supports the short arguments -1
ls -1
. From the help:
-1 list one file per line
Works on cygwin and FreeBSD, so it's probably not too GNU-specific.