Delete
Delete folder
rm -rf foldername
Delete all files inside folder (except hidden ones)
rm -rf foldername/*
rm = “remove”
-f = “force” which is helpful when you don’t want to be asked if you want to remove an archive.
-r = “recursive” which means that you want to go recursively down every folder and remove everything.
Compression
Zipping files
zip squash.zip file1 file2 file3
Zipping a directory
zip -r squash.zip dir1
Unzipping compressed a file
unzip filename
or
unzip file.zip -d destination_folder