ls -lt command

ls -lt command

ls -lt: Sorting the Formatted listing by time modification

Usages:

# ls -lt

Output:

total 160
drwxr-xr-x 2 root root 4096 Oct 22 2019 test2
-rw-r–r– 1 root root 5142 Oct 3 2019 ps1.txt
-rw-r–r– 1 root root 4893 Sep 23 2019 test2.php
drwxr-xr-x 2 root root 4096 Sep 13 2019 ivr
-rw-r–r– 1 root root 2170 Jan 24 2018 rew.php
-rw-r–r– 1 root root 2293 Jan 24 2018 play.php
-rw-r–r– 1 root root 2232 Jan 24 2018 mobile.php
-rw-r–r– 1 root root 3343 Jan 24 2018 add.php
drwxr-xr-x 2 root root 4096 Jan 9 2018 sunil.txt

 

Leave a Reply