A simple tip of using the Linux ls command option switch to display file listing ordered by time!
Although the GUI file explorer is simpler and intuitive than the cold black and white text console, Linux command line tools are powerful and convenient for shell scripting.
In brief, these are three ls command option switches used to sort files by time in three different contexts:

By default, the Linux file listing command displays files in the order of newer to older. If you would like to reverse it, include the


Although the GUI file explorer is simpler and intuitive than the cold black and white text console, Linux command line tools are powerful and convenient for shell scripting.
In brief, these are three ls command option switches used to sort files by time in three different contexts:
-ltto sort by time of file created or time of file content changed.
-lctto sort by time of file status information changed, e.g. file permission changed by chmod command.
-lutto sort by time of file access, e.g. open file for view via less, cat, more, pg, vi, etc.

By default, the Linux file listing command displays files in the order of newer to older. If you would like to reverse it, include the
-r option switch too, e.g. ls -ltr to display files sorted by time of file created/changed, from older to newer.

Custom Search



2013 •