How to sort all the files within a directory by modification time and show associated information using Linux command?

0
5
Sort all files within a directory
Sort all files within a directory Graphical Illustration
Sort all files within a directory
Sort all files within a directory Graphical Illustration

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

LEAVE A REPLY

Please enter your comment!
Please enter your name here