Check total disk usage :
df
Compress files and directories :
tar => creating and extracting .tar.gz and .tar files
- tar -zxvf file.tar.gz : Extracts the file
- tar -xvf file.tar : Extracts the file
- tar -cf archive.tar contents/ : Takes everything from contents/ and puts it into archive.tar
- gzip -d filename.gz : Decompress the file, extract it
Lists subfolders/sizes in a directory :
du -sh
Move a file :
mv filename.abc /new/path/filename.abc
Copy a file :
cp filename.abc /new/path/filename.abc
Show information about files :
ls -l (returns the size, the owner, etc.)
du -sh /mydirectory or myfile (returns the size)