Quite often, after a computer or laptop has been used for a while, we may need to know what is taking up all of the hard drive space.
An open source command-line utility called ‘du’ allows us to check file and directory sizes.
Here is a little snippet to check the size of the items in the present wording directory (also known as `pwd` ).
du -hs ./*|grep ^\.*[0-9]\.[0-9]*G\.*$|sort -n
You should now have a list of files and folders that are 1 Gigabyte or greater in size.