Last active
October 30, 2021 16:43
-
-
Save okb1100/b004874573dda3f2dc579ce2eed7f1f3 to your computer and use it in GitHub Desktop.
#linux-stuff [removes all files in /usr/share/locale/ except turkish and english to open up space]
This file contains 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
#!/bin/sh | |
## It is not guaranteed that your system will work as it is after this operation. | |
## I did it because I needed space. | |
#Find directories that do not include the string 'tr' and 'en' then remove them. | |
find /usr/share/locale -type d | grep -v -e 'tr' -e 'en' | sudo xargs rm -rf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment