Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on...
Note: An (*) indicates there is no official participation from that distribution here at LQ. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-25-2002, 03:55 PM
|
#1
|
LQ Newbie
Registered: Apr 2002
Location: Cheltenham UK
Distribution: Redhat 7.2
Posts: 3
Rep:
|
Bash commands
I'm Relatively new to Linux - getting there sloooowly:
In Redhat 6.5 I used to use commands such as shutdown . . .
Now in Redhat 7.2 I have to su - to get access to those commands.
This is causing a major problem at the moment because I'm
trying to set environment variables for JDK systems but when I
use setenv CLASSPATH . . . .
The system comes back with Bash: command not known.
Why can I no longer access these commands?
Cheers in advance
|
|
|
04-25-2002, 04:09 PM
|
#2
|
Member
Registered: Sep 2001
Distribution: Gentoo
Posts: 760
Rep:
|
The shutdown binary is in the /sbin directory, under recent versions of Red Hat this is not placed in the default users path.
The simpliest way round this is to create a login shell when you su
|
|
|
04-25-2002, 06:29 PM
|
#3
|
LQ Newbie
Registered: Apr 2002
Location: Cheltenham UK
Distribution: Redhat 7.2
Posts: 3
Original Poster
Rep:
|
Not really what I want to do
I don't want to keep logging into su -
I need to be able to run some of the commands. For example
I want to run the setenv command, even if I change to the
sbin directory I can't run it. Likewise with other commands such
as shutdown.
|
|
|
04-25-2002, 09:51 PM
|
#4
|
Member
Registered: Sep 2001
Distribution: Gentoo
Posts: 760
Rep:
|
Edit your path to include /sbin and
However most of the commands you shouldn't need as a normal user, which is why there are placed in the System BINaries directory in the first place.
|
|
|
04-26-2002, 03:28 AM
|
#5
|
Member
Registered: Mar 2002
Location: Elyria, Ohio
Distribution: Debian, Nothing else required
Posts: 141
Rep:
|
What shell are you using. setenv is a csh command for setting variables. If you're using sh, ksh or bash, you need to do:
export var_name=something
-mk
|
|
|
04-26-2002, 05:10 AM
|
#6
|
LQ Newbie
Registered: Apr 2002
Location: Cheltenham UK
Distribution: Redhat 7.2
Posts: 3
Original Poster
Rep:
|
Excellent - Now all I need to know is. . .
You are a star!!
I got lost in Java Documentation - I tried set, setenv, . . .
How do I remove that environment variable?
unset myVariableName seems to work
God that one bogged me down!
[Linux is hard work for a newbie person but with the time
I save in not rebooting and reinstalling because of M$ apps
killing the machine it probably works out better - Damned
nice system.]
|
|
|
04-27-2002, 02:56 PM
|
#7
|
Member
Registered: Mar 2002
Location: Elyria, Ohio
Distribution: Debian, Nothing else required
Posts: 141
Rep:
|
Seems you didn't have to ask this last question, since you seem to have gotten it. Yes, unset is the command you use. -mk
|
|
|
All times are GMT -5. The time now is 01:21 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|