Ubuntu command cheat sheet

Show directory size

//for specific directory
du -sh targetedDirectory

//for all directories
du -sh /*

//in kilobytes
du -sh -k /*


GZIP in a specific location

gzip -c yourFilesNeedToGzip > /locationWhereYouWantToSaveGzip/filename.gz


Shaharia is a professional software engineer with more than 10 years of experience in the relevant fields. Digital ad certified, cloud platform architect, Big data enthusiasts, tech early adopters.

Site Footer