Linux listing large number of files
October 11, 2024•78 words
In dealing with large amounts of data even the simplest things sometimes becomes a problem - listing files for example. To list a few million files on the command line, my usual go to list command ls -lrt simply took too long. This was because it was also sorting before printing the files. ls -1f simply prints the files and is much faster.
This stackoverflow post has more options on how to do this effectively.
tags:
#linux