Skip to content

Instantly share code, notes, and snippets.

View TipsyTheCat's full-sized avatar

Tipsy The Cat TipsyTheCat

  • 17:44 (UTC -05:00)
View GitHub Profile
#!/usr/bin/bash
# this script will check and defrag a specified partition via user input on the vast majority of unix-like systems
# it can be ran on a mounted partition or an unmounted one
# warn and inform user
echo "$(tput bold)WARNING!$(tput sgr0)"
echo "inputting the wrong mount point or partition/device path could harm your system!"
echo "To know the mount point of a partition or the device path of a mounted partition"
echo "run the \"mount\" command and look for your partition. or on some desktop environments"