Skip to content

Instantly share code, notes, and snippets.

View sanjay-bhuva's full-sized avatar

Sanjay Bhuva sanjay-bhuva

  • Dublin, Ireland
  • 06:51 (UTC +01:00)
View GitHub Profile
@sanjay-bhuva
sanjay-bhuva / ubuntu-cleanup-utility.sh
Last active August 20, 2020 22:06
Ubuntu cleanup utility to clean common junk and free up space
#!/bin/bash
# Script to perform some useful linux cleanup operations
# 1. Download the file
# 2. Make it executable using chmod +x ubuntu-cleanup-utility.sh
# 3. Run command below command
# sudo ./ubuntu-cleanup-utility.sh
REMOVE_LOG_OLDER_THEN_DAYS=1
SNAP_DIR=/var/lib/snapd/snaps