I want a list of all the sub-directories and their total sizes. I can do it with the
du -hs * command in CentOS and Ubuntu, but why doesn't it work on Mac?
This is the output I get:
MyMac:~ user$ du -hs * du: illegal option -- n usage: du [-H | -L | -P] [-a | -s | -d depth] [-c] [-h | -k | -m | -g] [-x] [-I mask] [file ...]
As far as I know,
* is a wildcard. Does macOS not support wildcards?