The first one is:
du -sh */ | sort -rh | head -6
This command will show 6 heaviest folders.
du - disk usage
Basically, the output of the first function becomes an input for the next function and so on.
head - shows only a certain amount of output.
The second one:
Turn this >
into this >
Just add this to your ~/.bashrc:
After that you need to restart your bash:
Also, there are different ways to restart your bash.
There are more ways you can set this up check out this overflow to find out more.
The third one:
Creating folders with a pattern. Recently I had to create 8 folders for my codewars challenges:
I unfortunately don't remember where I find out about this command.
Oh, I just found it. It's here.