Posts

Showing posts from December, 2011

Using tar to compress folders in Unix

To compress : tar -cf pictures.tar pics/; gzip pictures.tar Or if you want to combine the gzip and the tar creation in one command: tar -czf pictures.tar.gz pics/ To decompress : gunzip pictures.tar.gz; tar -xvf pictures.tar

Compiling The Linux Kernel

Image
Dependencies To compile Linux Kernel the following are required to be installed. gcc latest version, ncurses development package and system packages should be up-to date To install the dependencies run the following commands in terminal and type the password for the user, when prompted. For gcc $ sudo apt-get install gcc For ncurses development package $ sudo apt-get install libncurses5-dev After installing the above packages then update your system by running the following command Update To download the latest kernel go to kernel.org  and download the latest stable version. Once the download complete move to the directory where you have downloaded the kernel package “ linux-3.1.5.tar.bz2 “. Now extract the tar file to the location “ /usr/src/ “. To move to the directory, for example if the downloaded package is in your Downloads directory. Use the below command. $ cd Downloads/ To extract the tar file run the following command. Type the password f