By default, the ls command shows files and directories names in a row, for example:
Code:
[root@devopsrun1 test]# ls
files1.txt  files2.txt  files3.txt  files4.txt  files5.txt  files6.txt  files7.txt  files8.txt  files9.txt

How to list files in one column Linux ls command?


Let us see how list files and directories in a single column, use ls -1 (ls hyphen one)
Example:
Code:
[root@devopsrun1 test]# ls -1
files1.txt
files2.txt
files3.txt
files4.txt
files5.txt
files6.txt
files7.txt
files8.txt
files9.txt

How to list all files in a column including hidden files


Default ls -1 do not list hidden files, to include hidden files in listing use, ls -1a
Code:
[root@devopsrun1 test]# ls -1a
.
..
files1.txt
files2.txt
files3.txt
files4.txt
files5.txt
files6.txt
files7.txt
files8.txt
files9.txt
.hiddenfile1
.hiddenfile2

Hope this helps!