PDA

View Full Version : working with .profile and history


uptonm
08-15-2008, 11:59 AM
2 questions,

is it a bad idea to chflags schg on my root .profile file?

I'd like to also set chflags sappnd on the history file. If someone can't point me to a helpful resource on the net (perhaps there's a manpage I missed) for setting up the history so that it logs to a file, it would be great.

I set up HISTFILE=$HOME/.history; export HISTFILE
in /root/.profile

then i did chflags sappnd to the .history file but it doesn't seem to have any information in it when i try to read the file (as root.)

if there's a good resource on it i'd like to know.

deemon
08-15-2008, 01:14 PM
I assume you use bash as root user shell?
The history file is created/updated when the shell exists.