find / -ls|sort -n +6

Every now and then an unusual question pops up – 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 – that’s what the -ls option does. Then pipe that to sort, and have it do a numerical sort on the 6th field.

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.


Bill Backstrom January 12, 2023 Reply

Any specific hardware recommendations for those that want to be prepared?

sytse January 12, 2023 Reply

Hi Bill,

I’m currently using the ESP32-C3-DevKitM-1. This is one of the new Risc-V models – and note the difference between ESP32-C3-DevKitM-1 and ESP32-C3-DevKitM-1U – the latter doesn’t have the PCB antenna but instead a tiny connector.

I’ve also tried to get the ESP32-DevKitC but didn’t get it to work – and I’m not sure yet why. Might be that that specific chip is worn out, broken, or that there’s something wrong with the PCB it’s soldered onto. It needs some more debugging.

One thing I already know for sure though – it won’t work with the old ESP8266, the wifi on that is too different.

Leave a Reply