Sysop: | Amessyroom |
---|---|
Location: | Fayetteville, NC |
Users: | 42 |
Nodes: | 6 (0 / 6) |
Uptime: | 02:02:00 |
Calls: | 220 |
Calls today: | 1 |
Files: | 824 |
Messages: | 121,544 |
Posted today: | 6 |
I like typing in commands at the console. Is there
a command that gives me the size of a given folder,
and the number of files in it? I can do that with
the GUI, right klick on the folder and Proprties,
but would prefer to do it from a typed in command.
Is there one?
I like typing in commands at the console. Is there
a command that gives me the size of a given folder,
and the number of files in it? I can do that with
the GUI, right klick on the folder and Proprties,
but would prefer to do it from a typed in command.
Is there one?
Is there a command that gives me the size of a given folder, and
the number of files in it?
Is there a command that gives me the size of a given folder ...
... and the number of files in it?
... find "${1:-.}" -type f | wc -l ...
On Wed, 25 Sep 2024 08:14:51 -0000 (UTC), db wrote:
Is there a command that gives me the size of a given folder ...
du -s «folder»
... and the number of files in it?
I currently use
ls «folder» | wc -l
... not sure if there’s a more efficient way ...
On Wed, 25 Sep 2024 08:14:51 -0000 (UTC), db wrote:
Is there a command that gives me the size of a given folder ...
du -s «folder»
... and the number of files in it?
I currently use
ls «folder» | wc -l
... not sure if there’s a more efficient way ...