Linux - NewbieThis 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
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.
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.
I have Linux AS 3.0
Today i typed "service network start"
its saying "Bash: command not found" or something....
Also, "init 6" is also not working.....
Only "reboot" is working....
Sometimes above commands are all working....
So, how can i find out the bash version?
Also, where can i download the latest bash version?
please help me in installing the new bash version or if the bash is crashed how can i rectify it.
I'm guessing it works when you are root and doesn't when you aren't? This isn't a bash problem, it is a PATH/permissions problem. The service command is probably in /sbin (or /usr/sbin) which would only exist in root's path on a standard setup. The init command is likely only runable by root as well.
To find out what version of bash you are running type bash --version in a terminal.
You should see something like this:
Code:
GNU bash, version 3.00.16(1)-release (i686-pc-linux-gnu)
Copyright (C) 2004 Free Software Foundation, Inc.
No, I tried in Root as well as normal user.
In both the logins those are commands are not working.
Below is my bash version. Where can i get the latest bash version. And how can i update my bash version.
Code:
GNU bash, version 2.05b.0(1)-release (i386-redhat-linux-gnu)
Copyright (C) 2002 Free Software Foundation, Inc.
Also, how can i set the path to make the bash to work for a normal user ?
The global default path for people is typically set in /etc/profile.
However, you probably don't want your users to have the same path as root, as they shouldn't have permissions to run much of anything in the sbin directories anyway (and for good reason).
If you type whereis service as root what does it show? On my RHEL3 system it is in /sbin.... I imagine it is the same on RHAS3 as well. Regardless of where it is, if the directory it's in is in your PATH as root then you should be able to run it unless it isn't marked as executable.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.