Paths update

Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Paths update
# 1  
Old 07-24-2001
Hammer & Screwdriver Paths update

After unpacking a solaris 2.6 package with success, I need to update the paths so I can "see"the new software.
The manual shows me what the path should be but I don't have a clue on how to change that.
Asking a stupid question makes me look stupid 30 sec. Not asking makes me stupid the rest of my life....right ?

thanks for your help.
# 2  
Old 07-24-2001
The PATH variable can be set on a one off basis for that login session at the command line thus:


Or to make this permanent for a particular user edit that user's .profile, in their home directory - there should be a PATH definition in that file, simply add the new path(s) as you would do on the command line above.

# 3  
Old 07-24-2001
This is slightly off the subject, but is that how you set global variables like PATH, EDITOR, etc.?

As in EDITOR = $EDITOR:/blah/blah

# 4  
Old 07-24-2001

Or they can be placed in your .bashrc, .cshrc, etc. depending on the shell you are using.

Originally posted by ober5861
This is slightly off the subject, but is that how you set global variables like PATH, EDITOR, etc.?

As in EDITOR = $EDITOR:/blah/blah

# 5  
Old 07-24-2001
Well, I think:
EDITOR = $EDITOR:/blah/blah
would be a bad idea...
To set your editor to /usr/bin/vim, I would type:

What PATH=$PATH:/blah/bin does, is sets your path equal to the current PATH, and appends your new directory on the end.

To see what a variable currently is, to can expand it out:

echo $PATH

Please post back if I'm not making sence. I tend to ramble at times. Smilie

# 6  
Old 07-25-2001
Makes sense to me. That answered another question I had, so thank you!
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Programming

MYSQL - trigger update on record insert or update

Right I have a MYSQL database with table1 with 3 columns, colA, colB and colC. I want to combine the data in the 3 columns into a 4th column names col_comb. Here's the SQL command that works: UPDATE table1 SET `col_comb` = CONCAT( `colA` , ' - ', `colB` , ', ', `colC` ); So now I want this... (5 Replies)
Discussion started by: barrydocks
5 Replies

2. UNIX for Dummies Questions & Answers

Problem understanding Paths

If I don't explain my issue well enough, I apologize ahead of time, extreme newbie here to scripting. I'm currently learning scripting from books and have moved on to the text Wicked Cool Shell Scripts by Dave Taylor, but there are still basic concepts that I'm having trouble understanding. ... (10 Replies)
Discussion started by: Chasman78
10 Replies

3. Programming

Can't find paths.h

I wasn't sure which forum to post this in. I am trying to compile logsurfer. After I run configure and the make, I get a complaint that paths.h is not found. I see three places where there is a paths.h: /usr/include/pgsql/server/optimizer/paths.h... (3 Replies)
Discussion started by: brownwrap
3 Replies

4. What is on Your Mind?

Possible Career Paths

I've read through a couple of forum posts on Career issues but wanted to get some feedback that may be more personalized and whatnot. I am brand new to the world of UNIX and Linux and while I am finding the learning curve rather steep, I find it highly rewarding and am overall enjoying the... (2 Replies)
Discussion started by: huntreilly25
2 Replies

5. UNIX for Dummies Questions & Answers

Absolute and Relative Paths?

Can someone cofirm that I have got the paths correct here? :confused: $PATH_TO_TMP_DIR='/tmp'; #$PATH_TO_TMP_DIR='home/tmp'; $PATH_TO_YOUR_IMG_DIR = '/temp_images'; #$PATH_TO_YOUR_IMG_DIR = 'home/public_html/Midwich/temp_images'; Thanks (1 Reply)
Discussion started by: stubie
1 Replies

6. AIX

Storage paths

Have connected a non-IBM storage device to AIX host via fibre channel. If the storage is rebooted or a raid controller fails over whilst connected to the host, the paths that drop do not come back online when the ports become active again. I have tried enabling dynamic tracking and delayed_fail... (3 Replies)
Discussion started by: Storeman
3 Replies

7. UNIX for Advanced & Expert Users

Spoofing paths.

There is a program that I am trying to run on a shell account. It depends on another program, which I have also copied to the shell account. Both are in my home directory, yet the first program has a different path hardcoded into it, which I cannot use because of permissions problems. How can I... (3 Replies)
Discussion started by: fahadsadah
3 Replies

8. UNIX for Dummies Questions & Answers

create paths

Hello! If I have file like that: AAA ->bbb ->ccc ->ddd ->eee how to create full paths like: AAA->bbb AAA->ccc->ddd AAA->ccc->eee ? (I'm sorry for mistakes - english is not my native language) :) (4 Replies)
Discussion started by: alias47
4 Replies

9. UNIX for Dummies Questions & Answers


Hi there! People, i'm a new unix user, and i'm having some problems... I'm updating some scripts (korn shell) in different servers. I use telnet to access these servers and emacs to write the scripts. One of them is an HP, and there´s no problem. But the other one is an AIX, and when i call... (1 Reply)
Discussion started by: caiohn
1 Replies
Login or Register to Ask a Question