View previous topic :: View next topic |
Author |
Message |
addicha n00b
Joined: 29 Apr 2004 Posts: 11
|
Posted: Thu Jun 30, 2005 2:39 am Post subject: BASH newbie question |
|
|
Im sorry for the newbie question but, everytime i reboot from root#; I loose the history for bash.
If i want to keep the history, i have to logout and login again and then shutdown or reboot.
Anyone knows a workaround for this?
Thanks |
|
Back to top |
|
|
Xaid Guru
Joined: 30 Oct 2004 Posts: 474 Location: Edmonton / Alberta
|
Posted: Thu Jun 30, 2005 2:43 am Post subject: |
|
|
how about doing:
Code: |
shutdown -r now && logout
|
replace -r with -h to shutdown...
let me know if that works for u. |
|
Back to top |
|
|
addicha n00b
Joined: 29 Apr 2004 Posts: 11
|
Posted: Thu Jun 30, 2005 2:46 am Post subject: Yup |
|
|
Thanks!!!!
that extra "&& logout" did the trick |
|
Back to top |
|
|
Xaid Guru
Joined: 30 Oct 2004 Posts: 474 Location: Edmonton / Alberta
|
Posted: Thu Jun 30, 2005 3:11 am Post subject: |
|
|
no problem
btw, you should look into "sudo", that way you can set a certain user to be able to shutdown without having to become root (saves you from typing su - and then the password).
you will have to emerge "sudo" and edit your "sudoers" file, and allow that user to shutdown without a password.
check the man pages for "sudoers" if you need more info, or I can post my sudoers file if you cant figure it out.
good luck. |
|
Back to top |
|
|
|