The first one is:
du -sh */ | sort -rh | head -6
This command will show 6 heaviest folders.
du - disk usage
| - pipe. Which works like pipes ...
For further actions, you may consider blocking this person and/or reporting abuse
github.com/uutils/coreutils this rust written
du
is crazy fast. Alsoncdu
is great because it maintains an index, you can update it via cron, and use it in prompt lines - requires tokyocabinet though, which some people dislike.if you have multiple cores, check out this rust rewrite of du.
github.com/sharkdp/diskus
It's unreasonably fast.
Thanks for the tips!
Do you know what it means?
Did you get this figured out?
No, I haven't yet. Mainly, because diskus doesn't do the same thing in comparison to du.
Maybe I missed some options but diskus weighs my whole drive. I need to weigh the folders separately.
Gosh, I like Rust. Thanks, for sharing.
But I will probably later look more into github.com/vmchale/tin-summer
Can you help with second one.. Is there any way to do it for session with command?
Yes.
Just enter this in your terminal as a command (don't put it in your bashrc file):
PS1='\$ '
but that does not work on unix like environments !
I'm sorry. I'm kind of unfamiliar with unix. Do you mean on systems like BSD?
Yes. I was on HP-UX.
Do you use zsh?