
{"id":6735,"date":"2012-02-19T17:06:40","date_gmt":"2012-02-19T17:06:40","guid":{"rendered":"http:\/\/www.beautifulwork.org\/?p=6735"},"modified":"2012-02-19T17:06:40","modified_gmt":"2012-02-19T17:06:40","slug":"ls-options-s-1-r","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2012\/02\/19\/ls-options-s-1-r\/","title":{"rendered":"Hacking with  ls options  ( -S -1 -r)"},"content":{"rendered":"<pre>\nGNU Command\n\n$&gt; a1.txt\n$a &gt; a2.txt\nbash: a: command not found\n$echo a &gt; a2.txt\n$ls -S\na2.txt\ta1.txt\n$ls -S -1\na2.txt\na1.txt\n$ls -r -S -1\na1.txt\na2.txt\n$\n\nUNIX Explanation\n\n\n -S     sort by file size\n-1     list one file per line\n-r, --reverse\n              reverse order while sorting\n\n\ncomputer science Theory Drop\n\nSorting is any  process of arranging items in  some sequence and\/or\nin different sets, and accordingly, it has two common, yet distinct\nmeanings:  ordering:  arranging  items  of the  same  kind,  class,\nnature, etc.  in some ordered sequence,  categorizing: grouping and\nlabeling items with similar properties together (by sorts).\n\nsource : http:\/\/en.wikipedia.org\/wiki\/Sorting\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>GNU Command $&gt; a1.txt $a &gt; a2.txt bash: a: command not found $echo a &gt; a2.txt $ls -S a2.txt a1.txt $ls -S -1 a2.txt a1.txt $ls -r -S -1 a1.txt a2.txt $ UNIX Explanation -S sort by file size -1 list one file per line -r, &#8211;reverse reverse order while sorting computer science Theory Drop &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2012\/02\/19\/ls-options-s-1-r\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Hacking with  ls options  ( -S -1 -r)&#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":[83],"tags":[729,1437],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/6735"}],"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=6735"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/6735\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=6735"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=6735"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=6735"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}