LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-27-2006, 12:42 PM   #16
merlingt1
LQ Newbie
 
Registered: Apr 2006
Posts: 9

Original Poster
Rep: Reputation: 0

Here is "ls -al" of my home directory

drwxr-xr-x 2 irian ssdl-gen 70 Apr 25 16:36 .
drwxr-xr-x 25 root sys 4096 Apr 25 16:36 ..
-rw-r--r-- 1 irian ssdl-gen 552 Apr 25 16:36 .cshrc
-rw-r--r-- 1 irian ssdl-gen 6 Apr 25 16:36 .lang
-rw-r--r-- 1 irian ssdl-gen 631 Apr 25 16:36 .login
-rw-r--r-- 1 irian ssdl-gen 256 Apr 27 12:27 .profile
 
Old 04-27-2006, 12:43 PM   #17
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 14.1
Posts: 1,469

Rep: Reputation: 46
have a look in the other files for a PATH
 
Old 04-27-2006, 12:46 PM   #18
merlingt1
LQ Newbie
 
Registered: Apr 2006
Posts: 9

Original Poster
Rep: Reputation: 0
there are no other paths in any of the other files. by the way, this is a freshly made account so no one has tinkered with it.
 
Old 04-27-2006, 01:08 PM   #19
slackmagic
Member
 
Registered: Aug 2003
Distribution: Slackware
Posts: 253

Rep: Reputation: 32
merlingt1,

open up your ~/.cshrc file and add this line

Code:
set path = ( $path /new/path /other/new/path )
example:
Code:
set path = ( $path /ssdldsk/tools/bin/IRIX/ /usr/bin /bin /usr/sbin /sbin /usr/local/bin)

good luck!
 
Old 04-27-2006, 01:13 PM   #20
merlingt1
LQ Newbie
 
Registered: Apr 2006
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by retiredsoldier
merlingt1,

open up your ~/.cshrc file and add this line

Code:
set path = ( $path /new/path /other/new/path )
example:
Code:
set path = ( $path /ssdldsk/tools/bin/IRIX/ /usr/bin /bin /usr/sbin /sbin /usr/local/bin)

good luck!
AWESOME! that worked! Thanks guys!

~Irian
 
Old 04-28-2006, 02:51 AM   #21
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
It seems that you're using csh, not bash.
csh uses different syntax to set environment variables.
Hence, sourcing (executing the code without starting a subshell) your .profile
assumes that your profile contains code in csh syntax.

Last edited by timmeke; 04-28-2006 at 02:53 AM.
 
Old 04-28-2006, 06:55 AM   #22
debasish_5849
Member
 
Registered: Jan 2006
Location: India
Distribution: fedora core 5
Posts: 42

Rep: Reputation: 15
Smile

Quote:
Originally Posted by satinet
sounds like your PATH is being set elsewhere.

what other "." files are in the home directory?
That's true,linux does not generally have a .profile. It generally has shell specific file.

Last edited by debasish_5849; 04-28-2006 at 06:59 AM.
 
  


Reply

Tags
path, profile


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up paths Pyro-dragon Linux - Newbie 5 03-07-2005 07:04 PM
locating and edition .profile for java paths Madaize Linux - Newbie 1 11-07-2004 12:41 AM
Setting Paths? bluelaguna Linux - Software 2 08-07-2004 03:31 PM
setting paths bmagyar Linux - Software 10 11-01-2003 06:08 PM
question on paths and profile files bignester Linux - General 3 08-07-2003 03:54 PM


All times are GMT -5. The time now is 06:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration