I'm using Fedora and taking a Intro to Linux course. My teacher requests that we submit screen shots of our output so she can verify we are doing everything correctly. Sometimes, when the commands are long, or the information doesn't really stay on the page, she requests that we submit a screen shot of the history command.
Something is wrong, the history is gone, and she marked me off. She says the commands should be there. I've searched the internet, but can't really find anything that answers this.
Here's what's going on. I open the terminal and log in as root. I enter a few commands around displaying process (like, ps -eF | grep bash). Then I enter a series of kill commands, 3, 15, and 9.
Nothing seems to happen when I use 3 or 15 (I'm assuming they aren't "strong" enough to kill themselves
, but when I enter the command "kill -9 PID", the current terminal closes, and I am logged back in as my user name.
All of this makes sense to me, except that when then I log back in to root and run a history command. Nothing I entered from the previous session is there. It only displays commands from previous sessions.
So, I have two questions. First, is the teacher wrong? and second, is it possible to kill the terminal with option 9 and retain the history?
Thanks,
Kevin