.bashrc setup

From Oxxus Wiki

Jump to: navigation, search

In every user's home directory there is a file .bashrc and you can specify commands to be executed after the shell for the user is opened.

The most common uses are:

Setting a PATH shell variable, so you can automatically find the programs to be executed without giving a full path.

For example, if you have Java binaries installed in /usr/java/j2sdk1.6.0/bin, you would add this path to PATH variable by editing .bashrc and add a line:

PATH=$PATH:/usr/java/j2sdk1.6.0/bin

You can also make an alias for a command and put it in .bashrc.

If you use ls -al often, you can simply add an alias in .bashrc:

alias ls='ls -al'

And each time you type ls, ls -al would be executed.

Contact About Us Support Network Servers Java Hosting Oxxus.net Order Now! Dedicated Servers VPS Hosting Tomcat Hosting Java Hosting Money Back Guarantee Privacy Policy Oxxus.net Terms of 
Service Contact About Us Servers Networks Support Domain Names SSL Certificates Java Wiki Tutorials E-learning 
Platforms