Kode: Vælg alt
sudo rm -rf /usr/share/locale/mk
sudo rm -rf /usr/share/locale/el
sudo rm -rf /usr/share/locale/bs
sudo rm -rf /usr/share/locale/bg
sudo rm -rf /usr/share/locale/ar
sudo rm -rf /usr/share/locale/sr
sudo rm -rf /usr/share/locale/lv
sudo rm -rf /usr/share/locale/eu
sudo rm -rf /usr/share/locale/fr
sudo rm -rf /usr/share/locale/nl
sudo rm -rf /usr/share/locale/ca
sudo rm -rf /usr/share/locale/nn
sudo rm -rf /usr/share/locale/es
sudo rm -rf /usr/share/locale/si
sudo rm -rf /usr/share/locale/de
sudo rm -rf /usr/share/locale/zh_CN
sudo rm -rf /usr/share/locale/pl
sudo rm -rf /usr/share/locale/sl
sudo rm -rf /usr/share/locale/fi
sudo rm -rf /usr/share/locale/sv
sudo rm -rf /usr/share/locale/pt_BR
sudo rm -rf /usr/share/locale/la
sudo rm -rf /usr/share/locale/tr
sudo rm -rf /usr/share/locale/sk
sudo rm -rf /usr/share/locale/ja
sudo rm -rf /usr/share/locale/zh_TW
sudo rm -rf /usr/share/locale/pt
sudo rm -rf /usr/share/locale/ro
sudo rm -rf /usr/share/locale/nds
sudo rm -rf /usr/share/locale/cs
sudo rm -rf /usr/share/locale/ru
sudo rm -rf /usr/share/locale/ko
sudo rm -rf /usr/share/locale/it
sudo rm -rf /usr/share/locale/he
sudo rm -rf /usr/share/locale/fa
sudo rm -rf /usr/share/locale/nb
sudo rm -rf /usr/share/locale/hu
sudo rm -rf /usr/share/locale/id
Jeg har indført linjerne i scriptet, og det renser jo fint ud som forventet. Mit spørgsmål er så: Der er stadigt mapper og filer tilbage i /usr/share/locale. Og jeg er ikke glad for at, min kode ser så rodet ud nu. Man kunne jo korte den ned til:
Kode: Vælg alt
sudo rm -rf /usr/share/locale/*
Men vil det så slette filer, som man IKKE skulle slette?