How can I add to the path

Status
Not open for further replies.

Chancer_N00b

Cadet
Joined
Jun 19, 2012
Messages
1
Hello I'm a linux N00b, I'm starting to learn bash and I'm wanting to add my own dir containing my shell scripts. I cant figure out where to add to the current path to add my script dir.
I'm currently running 8.3.0. Can someone please tell me where the path is set from?

I happen to notice that when I logon using putty and type

I am normally using putty to logon echo $SHELL, I get /bin/csh
which I think means I'm running corn shell??

and when I login to the shell via my browser I get /usr/logal/bin/bash

I tried adding to the path line in .cshrc but that does not seem to work.


Thanks
 

JaimieV

Guru
Joined
Oct 12, 2012
Messages
742
Root on FreeNAS is set to /bin/csh, yes. Not sure about what happens on the browser shell!

For normal ssh login (putty), take a look at "startup and shutdown" on the csh manpage, http://www.freebsd.org/cgi/man.cgi?query=csh&sektion=1
(/bin/csh is actually a hardlink of /bin/tcsh in FreeBSD)

(Quick notes: csh is C shell. ksh would be Korn shell. FreeBSD is not linux, but is similar from a users' POV. Each user's shell is define on the Account panel (Change Admin User, Users tab), for root it's csh)
 
Status
Not open for further replies.
Top