Hello,
This is one of the feature which I found for listing files in UNIX / LINUX without showing details of the files (e.g.: owner, file size etc - typically ls -l) but I wanted to have each file showing in one line sorted in order of time.
I googled a lot but could not find any good response. Then I went into each and every option of ls command in the UNIX manual and found one option -1 (numeric one) which lists the file names with each file name in one line.
My requirement was to list files with only names in order of last created / modified.
Following command worked perfectly for me:
ls -t1
Hope this helps.
Keep sharing
This is one of the feature which I found for listing files in UNIX / LINUX without showing details of the files (e.g.: owner, file size etc - typically ls -l) but I wanted to have each file showing in one line sorted in order of time.
I googled a lot but could not find any good response. Then I went into each and every option of ls command in the UNIX manual and found one option -1 (numeric one) which lists the file names with each file name in one line.
My requirement was to list files with only names in order of last created / modified.
Following command worked perfectly for me:
ls -t1
Hope this helps.
Keep sharing