The Linux command Line and the interaction of users with Linux Shell are the most wonderful part of Linux. We need to use three options together i.e., ‘-l‘, ‘-t‘ and ‘-c‘ with command ‘ls’ to sort files by modification time, with the newest first. The following command is used to sort all the files within a directory by modification time and show associated information.

Command:

# ls -ltc

Categorized in:

Tagged in:

, ,