Finding SSH Folder Sizes
You may want to know the size of files or folders on Linux systems. For this, simply execute the following command;
For example, if we have a folder named regtr/, let's say we created this folder under /home/;
By saying du -sh /home/regtr it will print the total size of the folder.
If we give an example as du -sh /home/regtr > save.txt, it will save the folder size to the file.