From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <20120114080106.GA807@polynum.com> References: <20120114080106.GA807@polynum.com> Date: Sat, 14 Jan 2012 09:20:51 +0000 Message-ID: From: Charles Forsyth To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=0015175cae4268a56604b6797f7d Subject: Re: [9fans] du vs. ls: duplication or not? Topicbox-Message-UUID: 5b4ab51a-ead7-11e9-9d60-3106f5b1d025 --0015175cae4268a56604b6797f7d Content-Type: text/plain; charset=UTF-8 Du answers the question: (roughly) how big are these files (the files in these directories)? It still does that reasonably well in Plan 9 (I'm not ruling out possible improvements, but "it works for me!"). It doesn't answer questions about physical storage. On my Linux machines, I do use it as a guide to "which of my or the system's directories is exhausting the space on my SSD", with du -s * | sort +0nr [in rc on Linux: with sh you'd need to account for the stupid dotfile convention]. On Plan 9, I more often use it to see roughly how much data I'm going to move to a remote machine, or whether I've left temporary objects and executables, or whether to tar | gzip something. I sometimes use du -a to list the names in a hierarchy, but then I do the same on Linux (or I use find). On Linux, I never use ls -R, partly because I'm running p9p's ls, but mainly because the default format of /bin/ls -R is amazingly useless (even worse than I remembered). --0015175cae4268a56604b6797f7d Content-Type: text/html; charset=UTF-8
Du answers the question: (roughly) how big are these files (the files in these directories)?
It still does that reasonably well in Plan 9 (I'm not ruling out possible improvements, but "it works for me!").
It doesn't answer questions about physical storage. On my Linux machines, I do use it as a guide to
"which of my or the system's directories is exhausting the space on my SSD", with du -s * | sort +0nr
[in rc on Linux: with sh you'd need to account for the stupid dotfile convention]. On Plan 9, I more often
use it to see roughly how much data I'm going to move to a remote machine, or whether I've left temporary
objects and executables, or whether to tar | gzip something. I sometimes use du -a to list the names in a
hierarchy, but then I do the same on Linux (or I use find). On Linux, I never use ls -R, partly because I'm
running p9p's ls, but mainly because the default format of /bin/ls -R is amazingly useless (even worse than I remembered).

--0015175cae4268a56604b6797f7d--