From: Michael K. <li...@mk...> - 2019-06-30 17:34:55
|
> Am 30.06.2019 um 18:38 schrieb Bill Lewis <wr...@gm...>: > > I created a .bashrc for root, logged back in and it didn't work. > Then when I rebooted, the file was deleted. > > I changed /etc/profile, and changes there don't see to affect > root either. I'm coming in through ssh. > > Were can I put these things for the root user? > > <<< > # don't put duplicate lines or lines starting with space in the history. > # See bash(1) for more options > HISTCONTROL=ignoreboth > > # append to the history file, don't overwrite it > shopt -s histappend > > # for setting history length see HISTSIZE and HISTFILESIZE in bash(1) > HISTSIZE=1000 > HISTFILESIZE=2000 > >>> > > Thanks, > Bill That is because "/root" is on temporary storage by default. But you ca create "/mnt/kd/root", copy over the stuff from your root user and reboot. Then it will be permanent. Michael http://www.mksolutions.info |