Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Change your default locale on Ubuntu

Answer:

To change your Ubuntu's default locale, what you need is edit the file /etc/default/locale

LANG="en_US.UTF-8"

Add your choice of locale like the above.

Restart your computer and take effect.

Changing keyboard layout on Ubuntu

Answer:

If you have set a wrong keyboard layout, you can change it using the following command:

# dpkg-reconfigure console-setup

Follow the instructions and change it.

How to get the full list of Ubuntu's managed Perl modules?

Answer:

The full list of Ubuntu's managed Perl modules is here (for lucid): http://packages.ubuntu.com/lucid/perl/

You can use apt-get into install those modules, instead of CPAN. The advantage is you can remove them easier with the apt-get command, while for CPAN, you need to do it manually.

Remove downloaded archive files from apt-get

Answer:

To remove ownloaded archive files from apt-get to save spaces, try the following command:

# sudo apt-get clean

So all the unneeded archive files will be removed.

Compress and decompress file using 7zip

Answer:

7zip is a well known compression program if you need a very small file size, i.e. high compression ratio.

To install under Ubuntu/Debian:

# sudo apt-get install p7zip

To compress a file

# p7zip test.txt

To decompress a file

# p7zip -d test.txt.7z