
{"id":20158,"date":"2026-02-22T19:34:00","date_gmt":"2026-02-22T14:04:00","guid":{"rendered":"https:\/\/beautifulworknew.wordpress.com\/?p=20158"},"modified":"2026-02-22T19:34:00","modified_gmt":"2026-02-22T14:04:00","slug":"ls-ltr-command-for-long-list-reverse-sorted-based-on-time","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2026\/02\/22\/ls-ltr-command-for-long-list-reverse-sorted-based-on-time\/","title":{"rendered":"ls  -ltr   command  to sort  files by  time"},"content":{"rendered":"\n<pre class=\"wp-block-preformatted\">$ls<br>greedy-algorithm-example-coin-change-problem.js<br>longest-common-substring.js<br>memoization-top-down-approach.js<br>solving-knapsack-problem-a-recursive-solution.js<br>solving-knapsack-problem.js<br>tabulation-bottom-up-approach.js<br>$<br>ls  shows the contents  of  the  current  directory<br><br><br>$ls -ltr<br>total 24<br>-rw-rw-r-- 1 jeffrin jeffrin  591 Feb  9 21:37 memoization-top-down-approach.js<br>-rw-rw-r-- 1 jeffrin jeffrin  436 Feb  9 21:56 tabulation-bottom-up-approach.js<br>-rw-rw-r-- 1 jeffrin jeffrin 2133 Feb 16 22:13 longest-common-substring.js<br>-rw-rw-r-- 1 jeffrin jeffrin 2288 Feb 18 21:54 solving-knapsack-problem.js<br>-rw-rw-r-- 1 jeffrin jeffrin 1303 Feb 19 22:24 solving-knapsack-problem-a-recursive-solution.js<br>-rw-rw-r-- 1 jeffrin jeffrin 1366 Feb 21 23:17 greedy-algorithm-example-coin-change-problem.js<br>$<br>-l     use a long listing format<br>-r  reverse order while sorting<br>-t     sort by time, newest first<br>here you can see that the oldest date comes first  because  -r  is given for reverse sorting.<br>Here you can see the latest file for checking new things.<br><br><br><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>$lsgreedy-algorithm-example-coin-change-problem.jslongest-common-substring.jsmemoization-top-down-approach.jssolving-knapsack-problem-a-recursive-solution.jssolving-knapsack-problem.jstabulation-bottom-up-approach.js$ls shows the contents of the current directory$ls -ltrtotal 24-rw-rw-r&#8211; 1 jeffrin jeffrin 591 Feb 9 21:37 memoization-top-down-approach.js-rw-rw-r&#8211; 1 jeffrin jeffrin 436 Feb 9 21:56 tabulation-bottom-up-approach.js-rw-rw-r&#8211; 1 jeffrin jeffrin 2133 Feb 16 22:13 longest-common-substring.js-rw-rw-r&#8211; 1 jeffrin jeffrin 2288 Feb 18 21:54 solving-knapsack-problem.js-rw-rw-r&#8211; 1 jeffrin jeffrin 1303 Feb 19 22:24 solving-knapsack-problem-a-recursive-solution.js-rw-rw-r&#8211; 1 jeffrin jeffrin 1366 Feb &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2026\/02\/22\/ls-ltr-command-for-long-list-reverse-sorted-based-on-time\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;ls  -ltr   command  to sort  files by  time&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/20158"}],"collection":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/comments?post=20158"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/20158\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=20158"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=20158"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=20158"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}