RSS Subscription
Linux Howtos & Tutorials

Enter your email:

Delivered by


NOTE:New tutorials are from LinuxCareer.com

Poll

Do you own or wish to have iPhone?
 


Linux eBooks FREE Download
A guide to programming Linux kernel modules
Introduction to Linux - A Hands on Guide
A Newbie's Getting Started Guide to Linux

Linux from Scratch - Create Your Own Linux System - Free eBook

Linux: The Hacking Solution (v.3.0)

SQLite 3 with PHP Essential Training – Free Video Training Tutorials

This guide will introduce you to the world of GNU/Linux

The GNU/Linux Advanced Administration

A Complete Beginner's Manual for Ubuntu 10.04 (Lucid Lynx)

Advanced Bash-Scripting Guide

Set up, maintain, and secure a small office email server

Partner Linux Sites:
How-To.LinuxCareer.com
Jobs.LinuxCareer.com
TuxMachines
Monsterb
LinuxBloggers
AdamsInfo
LinuxScrew
All For Linux

Permanently add a directory to shell PATH

You have some home made scripts or programs sitting in your home directory but you always need supply a full path to those scripts in order to be able to execute them. This is fine for a short time but in the long run this can be quite tedious and thus ineffective. The problem is that the path to your scripts is not defined by bash PATH environmental variable. To add path to your scripts pernamently even after reboot modify your ~/.bash_profile file. For example to add paths:

~/bin and ~/android-sdk

add a following line to your ~/.bash_profile file.

PATH=$PATH:$HOME/bin:$HOME/android-sdk

To make the above line affective you need to log out or reboot your system.

Share this linux post:

Submit Permanently add a directory to shell PATH  in Delicious Submit Permanently add a directory to shell PATH  in Digg Submit Permanently add a directory to shell PATH  in FaceBook Submit Permanently add a directory to shell PATH  in Google Bookmarks Submit Permanently add a directory to shell PATH  in Stumbleupon Submit Permanently add a directory to shell PATH  in Technorati Submit Permanently add a directory to shell PATH  in Twitter
 
Comments for this page are closed !!!
Please visit our new Linux Forum for additional help or discussion.


Linux eBooks FREE Download