Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
What is the purpose of /usr/lib/locale and /usr/share/locale ? It seems that there's some internalization files, but I think I don't need them. I have a hard-disk space shortage and I'd like to erase them. Is there a safe way to erase/shrink these directories ?
The locale file are, as you guessed, related to internationalisation and the character set of your language of choice. Applications, and distro's, sometimes install locale related files, so you'd be better off saving disk space elswhere. Removing locale files may break your applications.
If your just an English speaker and you spot a serb-croat or persian locale you might be safe deleting it but it would be a risk I'd prefer not to take.
The locale files are used to designate your (i.e. the user) locale (for language and time keeping purposes). If your installation has successfully recognized your locale and time zome, you may safely delete all other locales. You may also safely hunt down and delete languange files which you don't use or can't use (not fluent in those languages). I have done so through three different Linux distros, and the only impact I noticed was in web browsing. The languages I deleted did not display properly.
However, since I am not fluent in those languages, I didn't loose anything.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.