This should be a simple hw problem but I can't seem to get it to work correctly. This is an old lab that I missed a while ago (make ups are not allowed), so no I'm not just trying to get other people to do my work I legitimately want to know how to make this work.
When logging in, you want to see how much data your $HOME directory is using (in term of MB). The command you want to use is du. However du will show you information for entire file/directory hierarchy under $HOME. Use the man page to figure out the options that give you only the size in MB of your $HOME directory. You must print out a useful message before running du. (echo "The size of the home directory is:")
Getting each command to work separately is easy, but I have no idea how to combine them.