Listing files in directory in one column
Solution 1:
You need the ls
command -1
option.
ls -1 /dir
just to clarify. that is ls -(one) /dir
; like the number.
from the man ls page:
-1 list one file per line. Avoid '\n' with -q or -b
You need the ls
command -1
option.
ls -1 /dir
just to clarify. that is ls -(one) /dir
; like the number.
from the man ls page:
-1 list one file per line. Avoid '\n' with -q or -b