Tuesday, July 26, 2011

How to set the environment variables in the linux


The below command set the environment for the current session only. Once the terminal is closed the environment variables need to set again for new session.


export PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/home/ubuntu/EasyARM/work/crosstool/mini2440/usr/local/arm/4.3.2/bin


Similarly the path varies from other toolchains.





How to extract the .tar.bz2 file


Launch your terminal, access the directory containing your file using the "cd" command, then issue this command:

tar -xjf filename.tar.bz2