{"id":1411,"date":"2023-01-12T19:49:37","date_gmt":"2023-01-12T19:49:37","guid":{"rendered":"https:\/\/pdp2011.sytse.net\/wordpress\/?p=1411"},"modified":"2023-01-12T19:49:37","modified_gmt":"2023-01-12T19:49:37","slug":"find-lssort-n-6","status":"publish","type":"post","link":"https:\/\/pdp2011.sytse.net\/wordpress\/find-lssort-n-6\/","title":{"rendered":"find \/ -ls|sort -n +6"},"content":{"rendered":"\n<p>Every now and then an unusual question pops up &#8211; like, how do you find the biggest file on your BSD machine.<\/p>\n\n\n\n<p>Easy. Use find to dump all file names, one line per file, in ls -ls style &#8211; that&#8217;s what the -ls option does. Then pipe that to sort, and have it do a numerical sort on the 6th field.<\/p>\n\n\n\n<p>Why did I want to do this, you might ask? well, to find the biggest file to FTP over to my desktop machine. To test the new wireless network version of the DEUNA based on ESP32C3. Yes, it works. More soon.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Every now and then an unusual question pops up &#8211; like, how do you find the biggest file on your BSD machine. Easy. Use find to dump all file names, one line per file, in ls -ls style &#8211; that&#8217;s what the -ls option does. Then pipe that to sort, and have it do a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-1411","post","type-post","status-publish","format-standard","hentry","category-hardware","missing-thumbnail"],"_links":{"self":[{"href":"https:\/\/pdp2011.sytse.net\/wordpress\/wp-json\/wp\/v2\/posts\/1411","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pdp2011.sytse.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pdp2011.sytse.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pdp2011.sytse.net\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pdp2011.sytse.net\/wordpress\/wp-json\/wp\/v2\/comments?post=1411"}],"version-history":[{"count":0,"href":"https:\/\/pdp2011.sytse.net\/wordpress\/wp-json\/wp\/v2\/posts\/1411\/revisions"}],"wp:attachment":[{"href":"https:\/\/pdp2011.sytse.net\/wordpress\/wp-json\/wp\/v2\/media?parent=1411"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pdp2011.sytse.net\/wordpress\/wp-json\/wp\/v2\/categories?post=1411"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pdp2011.sytse.net\/wordpress\/wp-json\/wp\/v2\/tags?post=1411"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}