iam not able to find these commands.

C. Linus Hicks lhicks at nc.rr.com
Fri Dec 24 09:48:42 UTC 2004


On Thu, 2004-12-23 at 22:57 -0800, Nagaraj Patil wrote:
> hi there,
> 1.iam  trying to set environmental variables for j2ee
> server  using "setenv" command as per the website
> information.
> but iam not able to find this command in Fedora Core
> 2.
> how can i set these variables for all users at once
> and wat about setenv command in this distro.

The setenv command is used in csh compatible shells like zsh. If that's
what you want, you could set your default shell. Otherwise, Fedora
defaults to using the bash shell which is more like sh. You could read
the man page: man bash. Setting the path for all users can be done
in /etc/profile or /etc/profile.d/.

> 2.iam not able to shutdown the system using shutdown
> command.the responce is "command not found".
> 
> how to shutdown the system from text mode of linux
> FC2.

Generally speaking, /sbin is not on your path unless you are logged in
as root, and only the root user is allowed to use shutdown (unless you
have /etc/shutdown.allow). Are you connected as root when you issue the
shutdown command?

-- 
C. Linus Hicks <lhicks at nc dot rr dot com>




More information about the redhat-list mailing list