2
votes
2answers
97 views

How to look at the past directory history the shell was in?

Sometimes I like to look back in the command history to figure out what I was doing. Sometimes it would help to know what the cwd was for each command. So, I'm wondering if there's some way to track ...
0
votes
1answer
368 views

using history command with ssh and getting output with correct time stamps [duplicate]

Possible Duplicate: using history command with ssh and getting output with time stamps Basically i want to get a record of all commands executed on my ssh server, with their correct ...
0
votes
2answers
783 views

using history command with ssh and getting output with time stamps

Basically i want to get a record of all commands executed on my ssh server, with their times. The codes i have tried are : ssh user@ip 'export HISTFILE=~/.bash_history; set -o history; history' I ...
2
votes
1answer
306 views

Re-run command with prepended text from bash history

How do I repeat the last bash command with some text pre-pended to the front of it. So if the previous command was: $ ls /somedir I want to run the following command utilizing the bash history to ...
4
votes
3answers
1k views

Unix history not working

I'm using ksh on unix and connect through putty. My .sh_history stores all history commands but when I press up arrow nothing comes, please help me.
9
votes
2answers
19k views

How can I check the user command history in Unix?

I know the 'history' command give me a list of the commands I have typed into the Unix terminal. How do I see the command history for all of the users currently logged onto the system?
3
votes
2answers
966 views

Sometimes my .bash_history gets cleared. Why? How can I prevent that?

Here's my shell: $ $SHELL --version | head -1 GNU bash, version 4.1.7(2)-release (i386-apple-darwin10.3.0) Here are my history related settings: export HISTCONTROL=ignoredups:erasedups export ...
34
votes
4answers
8k views

What is the origin of the UNIX $ (dollar) prompt?

The UNIX prompt uses a $ symbol to indicate that your input is expected. I was wondering why this symbol was chosen -- if there is a reason. Dollar just seems a little unexpected. A > would have been ...