![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| echo $PATH doesn't match $HOME/.profile | Veestan | UNIX for Dummies Questions & Answers | 1 | 04-17-2008 02:15 PM |
| Question about Restricting Search path of FIND to current directory | super_duper_guy | UNIX for Dummies Questions & Answers | 2 | 10-17-2005 09:10 AM |
| cd into home directory ~ | here2learn | UNIX for Dummies Questions & Answers | 4 | 04-12-2005 09:20 AM |
| I need a path to install UNIX on my home PC | chutt | UNIX for Dummies Questions & Answers | 6 | 02-06-2004 12:12 PM |
| c++ home directory?? | user666 | UNIX for Dummies Questions & Answers | 3 | 03-16-2002 09:49 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
home directory in search path
Is it unsafe to put your own home directory (a regular user) in your search path? I am writing useful shell scripts, but don't have the permissions to put them in /usr/bin. (Korn shell)
thanks |
|
|||||
|
A very common thing to do is create your own bin directory in your $HOME, so you can keep files seperate. I do this on nearly all of my account, both regular and root.
mkdir $HOME/bin chmod 700 $HOME/bin PATH=${PATH}:/$HOME/bin Then add that PATH addition to your .profile (or .bash_profile if needed) to make it work every time you log in. The reason I suggest the added bin directory is to keep your scripts / programs you want to use regularly seperate from test scripts, and other file that may interfere. Besides, it's just plain cool to have your own bin directory ![]() |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|