Reply
Thread Tools
int_ua's Avatar
Posts: 676 | Thanked: 1,067 times | Joined on Jul 2010 @ Kyiv, Ukraine
#1
Didn't run it myself. Requires bash installed.
Code:
#!/bin/bash
needed="uk|en|ru"
echo -e "\n\nscript WILL DELETE SYSTEM FILES.\nOnly excluding locales: $needed\nPress Ctrl+C to cancel, Enter to proceed:\n"
read
df -h | grep ":rootfs"
sleep 2
cd /usr/share/locale/
for locale in `ls /usr/share/locale/ | grep -vE $needed`; do
     echo "will delete /usr/share/locale/"$locale
     #sudo rm -ir "/usr/share/locale/"$locale
done
df -h | grep ":rootfs"
Just dreaming about why I am sparing space on such a small rootfs for languages I will never use.
 

The Following 2 Users Say Thank You to int_ua For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 03:08.