🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.linux
Article #54938

Re: (Newbie)How to add path?

#54938
From: Mark Greatrix
Date: Mon, 18 Aug 1997 00:00
62 lines
2559 bytes


Gama wrote in article <01bcab1e$18ddf820$88e71acb@ojays1>...

>Hello everyone.
>
> I just download JDK Kit and Ada and installed it in my PC. Now HOWTO
>document mentioned about adding path of the JDK Kit, the problem is I don't
>know which file to modify (I was assuming adding path statement would like
>editing the AUTOEXEC.BAT file in MSDOS).
>
>I'm using Linux from Slackware distribution ver 3.2. It is setup with bash
>shell, but I changed it to tcsh.( I couldn't get it back to bash again, I
>don't know why).
>--
>Gama O. P. Soetjipto

To change your shell back to bash, edit your /etc/passwd file, go to the
line corresponding to the user you want to change.  at the end of the line,
if there is an entry for a shell, change it to
/bin/bash or if there is no shell specified, add it

To add an entry to the path, it depends on which shell you are using

    for /bin/sh, /bin/pdksh, /bin/ksh, and /bin/bash, use the following

            go to the home directory of the user you want to change, usually
with 'cd'
            edit the file '.profile'

            if there is an existing 'PATH=' line you can add your entry to
the line......e.g.
                    PATH=$PATH:/usr/bin:............:/newentry/newentry

            or you can add a line which says :-
                    PATH=$PATH:/newentry/newentry

    The individual items are separated by a colon, not a semi-colon like DOS


    If you want to use tcsh, I believe the file to edit is call '.login',
again in the home dir

    The format of the path statement is different from the previous shells,
and is will look
    something like:-

                set path=( $HOME/bin   /usr/bin   /pdl/bin  )

    just add your new one in:-

                set path=( $HOME/bin   /usr/bin   /pdl/bin
/newentry/newentry )

    The individual items are separated by a space

If you have any problems, let me know

Mark

mgreatri at anasazi dot com
Technical Details
Message-ID: <5t99ti$9fs@freepress.anasazi.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <01bcab1e$18ddf820$88e71acb@ojays1>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 100b1f,66ff1b7b09a62924
X-Google-Attributes: gid100b1f,public
X-Google-Thread: 102983,66ff1b7b09a62924
X-Google-Attributes: gid102983,public
From: "Mark Greatrix" <mgreatri@NOSPAM.anasazi.com>
Subject: Re: (Newbie)How to add path?
Date: 1997/08/18
Message-ID: <5t99ti$9fs@freepress.anasazi.com>
X-Deja-AN: 264973583
References: <01bcab1e$18ddf820$88e71acb@ojays1>
X-MimeOle: Produced By Microsoft MimeOLE Engine V4.71.1008.3
Organization: Anasazi Inc.
Newsgroups: aus.computers.linux,comp.os.linux.help