bash can not find most of my commands

2011-02-22 Thread Alokat
Hi, I have changed my shell from csh to bash ... But after that I have to call reboot like /sbin/reboot. How can I change that without changing the shell. :) my /root/.profile: PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin export PATH HOME=/root export HOME

Re: bash can not find most of my commands

2011-02-22 Thread Rolf Nielsen
2011-02-22 17:40, Alokat skrev: Hi, I have changed my shell from csh to bash ... Why? Do you use root as your regular login? But after that I have to call reboot like /sbin/reboot. How can I change that without changing the shell. :) my /root/.profile:

Re: bash can not find most of my commands

2011-02-22 Thread Alokat
On 02/22/11 17:44, Rolf Nielsen wrote: 2011-02-22 17:40, Alokat skrev: Hi, I have changed my shell from csh to bash ... Why? Do you use root as your regular login? But after that I have to call reboot like /sbin/reboot. How can I change that without changing the shell. :) my

Re: bash can not find most of my commands

2011-02-22 Thread Paul Macdonald
On 22/02/2011 16:40, Alokat wrote: Hi, I have changed my shell from csh to bash ... But after that I have to call reboot like /sbin/reboot. How can I change that without changing the shell. :) don't change your root shell! csh is in the base system so is safe and will always* work, bash is

Re: bash can not find most of my commands

2011-02-22 Thread Rolf G Nielsen
2011-02-22 17:47, Alokat skrev: On 02/22/11 17:44, Rolf Nielsen wrote: 2011-02-22 17:40, Alokat skrev: Hi, I have changed my shell from csh to bash ... Why? Do you use root as your regular login? But after that I have to call reboot like /sbin/reboot. How can I change that without

Re: bash can not find most of my commands

2011-02-22 Thread Alokat
On 02/22/11 17:49, Paul Macdonald wrote: On 22/02/2011 16:40, Alokat wrote: Hi, I have changed my shell from csh to bash ... But after that I have to call reboot like /sbin/reboot. How can I change that without changing the shell. :) don't change your root shell! csh is in the base system

Re: bash can not find most of my commands

2011-02-22 Thread Randy Ramsdell
Alokat wrote: On 02/22/11 17:49, Paul Macdonald wrote: On 22/02/2011 16:40, Alokat wrote: Hi, I have changed my shell from csh to bash ... But after that I have to call reboot like /sbin/reboot. How can I change that without changing the shell. :) don't change your root shell! csh is in

Re: bash can not find most of my commands

2011-02-22 Thread Jason Helfman
On Tue, Feb 22, 2011 at 12:08:30PM -0500, Randy Ramsdell thus spake: Alokat wrote: On 02/22/11 17:49, Paul Macdonald wrote: On 22/02/2011 16:40, Alokat wrote: Hi, I have changed my shell from csh to bash ... But after that I have to call reboot like /sbin/reboot. How can I change that

Re: bash can not find most of my commands

2011-02-22 Thread Lars Eighner
On Tue, 22 Feb 2011, Alokat wrote: Paul has satisfied me. I have changed back to csh. If you want to run as root and use bash, well, that is what the user toor is for (examine master.passwd -- use vipw to edit master.passwd to enter a password for toor and the path to bash for toor, but set

Re: bash can not find most of my commands

2011-02-22 Thread Warren Block
On Tue, 22 Feb 2011, Paul Macdonald wrote: On 22/02/2011 16:40, Alokat wrote: Hi, I have changed my shell from csh to bash ... But after that I have to call reboot like /sbin/reboot. How can I change that without changing the shell. :) don't change your root shell! csh is in the base

Re: bash can not find most of my commands

2011-02-22 Thread Chad Perrin
On Tue, Feb 22, 2011 at 05:58:22PM +0100, Alokat wrote: Paul has satisfied me. I have changed back to csh. Your system should have a toor account as well. It is just a second root account, whose essential purpose is to provide a root account that you can fiddle with to your heart's content

Re: bash can not find most of my commands

2011-02-22 Thread David Brodbeck
On Tue, Feb 22, 2011 at 9:53 AM, Chad Perrin per...@apotheon.com wrote: Thus, if you *really* want a superuser account with bash as its default shell, you can always use toor for that purpose.  I don't much see the point in setting a superuser account to use bash anyway -- or any other

Re: bash can not find most of my commands

2011-02-22 Thread Chad Perrin
On Tue, Feb 22, 2011 at 10:07:54AM -0800, David Brodbeck wrote: On Tue, Feb 22, 2011 at 9:53 AM, Chad Perrin per...@apotheon.com wrote: It turns out auto-completion with hinting and command history searching are pretty addictive if you're used to having them. :) I have auto-completion, and I

Re: bash can not find most of my commands

2011-02-22 Thread David Brodbeck
On Tue, Feb 22, 2011 at 12:39 PM, Chad Perrin per...@apotheon.com wrote: Just do us all a favor; don't write code in bash. Yeah, I try to avoid bash-specific syntax unless it's for one-off scripts. csh suffers the same kinds of problems; I only write csh code under extreme duress, like when

Re: bash can not find most of my commands

2011-02-22 Thread Chad Perrin
On Tue, Feb 22, 2011 at 01:10:20PM -0800, David Brodbeck wrote: Yeah, I try to avoid bash-specific syntax unless it's for one-off scripts. csh suffers the same kinds of problems; I only write csh code under extreme duress, like when forced to maintain the system-wide csh.login script. ;) I

Re: bash can not find most of my commands

2011-02-22 Thread Chip Camden
Quoth David Brodbeck on Tuesday, 22 February 2011: On Tue, Feb 22, 2011 at 12:39 PM, Chad Perrin per...@apotheon.com wrote: Just do us all a favor; don't write code in bash. What's with all the bash bashing? Sorry, couldn't resist. Yeah, I try to avoid bash-specific syntax unless it's for