On Fri, Mar 07, 2025 at 02:41:33 +0000, Andy Smith wrote: > On Thu, Mar 06, 2025 at 09:33:40PM -0500, Maureen Thomas wrote: > > root@debian:/home/maureen# cd /var > > > > root@debian:/var# du -sh* > > > > du: invalid option -- '*' > > Missing space between 'h' and '*' so the '*' was treated as an option, > which is invalid. The '*' is unnecessary anyway.
It's totally necessary. root@hobbit:/var# du -sh 2.1G . root@hobbit:/var# du -sh * 4.0M backups 124M cache 40K games 209M lib 4.0K local 0 lock 1.8G log 8.0K mail 4.0K opt 2.3M qmail 0 run 3.6M spool 32K tmp In my case, most of the space is in the "log" subdirectory. So, if I felt a need to prune stuff on this system, I would cd into log next, and repeat the process, until I found something I felt it was safe to truncate or remove. (Removing log files is often ineffective, because they're kept open by whatever's writing to them; truncating them works, though.)