How to check system configuration on Ubuntu using command


How to check the system configuration on Ubuntu 12.04 using terminal command.

I am using Ubuntu 12.04 but the command i am going to write it’s working on previous version also.
If you are new to Ubuntu then you find difficulty to check the system configuration of Ubuntu.

How to check

Open the terminal and write the folowing command

cat  /proc/meminfo

cat  /proc/cpuinfo



It will show all the information. If you want specific thing to show like if you want to check only the Model then use the command written below.

cat /proc/cpuinfo | grep -i ‘Model’

It will show information like this


model        : 42
model name    : Intel(R) Pentium(R) CPU G630 @ 2.70GHz
model        : 42
model name    : Intel(R) Pentium(R) CPU G630 @ 2.70GHz

How to extract .rar files in ubuntu/Linux



Extract .RAR files in Ubuntu



While working on ubuntu i tried to extract .rar file but it failed to extract and shows the error that archive type not supported.

So how to extract .rar files on Linux

Go to terminal and type following command

sudo apt-get install unrar 


After installing unrar on your system right click on rar file and extract them it will easily extract there.

Extract .RAR file in linux

How to Enable/Install apache mod_rewrite and mod_headers in ubuntu

Last week while i was working on url rewriting i face the problem. I had written the rule in .htaccess but forget to enable the mod_rewrite. Remember your .htaccess rule will not work until you enable the mod_rewrite.

How to install apache2 on ubuntu

Go to terminal (ctrl+Alt+T) and write the following command

Once apache2 installation is complete. Write the command mentioned below to enable mod_rewrite

After enable the mod_rewrite do the changes on following file

After done the changes restart the apache.

To restart apache2

Enable mod_headers in apache

Remember to restart apache 

So to restart apache2 write through terminal