{"id":336,"date":"2011-06-04T17:13:13","date_gmt":"2011-06-05T00:13:13","guid":{"rendered":"http:\/\/10kdev.ivystreetinc.com\/?p=336"},"modified":"2011-06-04T17:13:13","modified_gmt":"2011-06-05T00:13:13","slug":"linux-tip-readable-ls-command","status":"publish","type":"post","link":"http:\/\/10kdev.net\/?p=336","title":{"rendered":"Linux Tip: Readable ls command"},"content":{"rendered":"<p>Usually out of habit I just do an <strong>ls -la<\/strong> command (or <strong>dir<\/strong> by accident \ud83d\ude42 ):<\/p>\n<p><code><br \/>\nuser@ubuntu:\/etc$ ls -la<br \/>\ntotal 1152<br \/>\ndrwxr-xr-x 133 root    root    12288 2011-04-03 22:02 .<br \/>\ndrwxr-xr-x  22 root    root     4096 2010-06-21 12:18 ..<br \/>\ndrwxr-xr-x   3 root    root     4096 2010-06-21 07:20 acpi<br \/>\n-rw-r--r--   1 root    root     2981 2010-06-21 06:22 adduser.conf<br \/>\n-rw-r--r--   1 root    root       46 2011-01-18 08:54 adjtime<br \/>\ndrwxr-xr-x   2 root    root     4096 2011-03-06 06:17 alternatives<br \/>\n-rw-r--r--   1 root    root      395 2010-03-04 21:29 anacrontab<br \/>\n<\/code><\/p>\n<p>If you add -h it becomes human readable for the sizes, which is great:<\/p>\n<p><code><br \/>\nuser@ubuntu:\/etc$ ls -lah<br \/>\ntotal 1.2M<br \/>\ndrwxr-xr-x 133 root    root     12K 2011-05-19 21:31 .<br \/>\ndrwxr-xr-x  22 root    root    4.0K 2010-06-21 12:18 ..<br \/>\ndrwxr-xr-x   3 root    root    4.0K 2010-06-21 07:20 acpi<br \/>\n-rw-r--r--   1 root    root    3.0K 2010-06-21 06:22 adduser.conf<br \/>\n-rw-r--r--   1 root    root      46 2011-01-18 08:54 adjtime<br \/>\ndrwxr-xr-x   2 root    root    4.0K 2011-03-06 06:17 alternatives<br \/>\n-rw-r--r--   1 root    root     395 2010-03-04 21:29 anacrontab<br \/>\n<\/code><\/p>\n<p>Also sometimes I like to add -t to sort by time.  But usually, ls -la.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Usually out of habit I just do an ls -la command (or dir by accident \ud83d\ude42 ): user@ubuntu:\/etc$ ls -la total 1152 drwxr-xr-x 133 root root 12288 2011-04-03 22:02 . drwxr-xr-x 22 root root 4096 2010-06-21 12:18 .. drwxr-xr-x 3 root root 4096 2010-06-21 07:20 acpi -rw-r&#8211;r&#8211; 1 root root 2981 2010-06-21 06:22 adduser.conf -rw-r&#8211;r&#8211; [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[12],"tags":[],"_links":{"self":[{"href":"http:\/\/10kdev.net\/index.php?rest_route=\/wp\/v2\/posts\/336"}],"collection":[{"href":"http:\/\/10kdev.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/10kdev.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/10kdev.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/10kdev.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=336"}],"version-history":[{"count":4,"href":"http:\/\/10kdev.net\/index.php?rest_route=\/wp\/v2\/posts\/336\/revisions"}],"predecessor-version":[{"id":382,"href":"http:\/\/10kdev.net\/index.php?rest_route=\/wp\/v2\/posts\/336\/revisions\/382"}],"wp:attachment":[{"href":"http:\/\/10kdev.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=336"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/10kdev.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=336"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/10kdev.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=336"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}