ServerCake India

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

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

Editorial Team

Editorial Team at ServerCake India Blog is a team of experts in Server Administration, Business Development, Management, SEO Analyst & Graphic Designers with more than 5+ years of expertise.

Add comment