This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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" |