I need a long (vertical) list of all file names of all files in a directory.
How to get only file names from an ls -la
(ll
) listing?
Only the names, not:
drwxr-xr-x 9 USER GROUP 4096 Jul 20 10:30 filename1
drwxr-xr-x 9 USER GROUP 4096 Jul 20 10:30 filename2
drwxr-xr-x 9 USER GROUP 4096 Jul 20 10:30 filename3
drwxr-xr-x 9 USER GROUP 4096 Jul 20 10:30 filename4
drwxr-xr-x 9 USER GROUP 4096 Jul 20 10:30 filename5
Rather I need only:
filename1
filename2
filename3
filename4
filename5
ls -1
should be the right answer for this question.