Skip to main content
Tweeted twitter.com/#!/StackUnix/status/354754885708824576
deleted 3 characters in body
Source Link
slm
  • 380k
  • 127
  • 793
  • 897

I was wondering: If I type history I can see the previous commands I typed and see what happened and perhaps keep commands as reference.
But But I don't know in which directory I was when I typed the commands.
Is

Is there a version of history that displays also the directory you were in when you typed the command?

I was wondering: If I type history I can see the previous commands I typed and see what happened and perhaps keep commands as reference.
But I don't know in which directory I was when I typed the commands.
Is there a version of history that displays also the directory you were in when you typed the command?

I was wondering: If I type history I can see the previous commands I typed and see what happened and perhaps keep commands as reference. But I don't know in which directory I was when I typed the commands.

Is there a version of history that displays also the directory you were in when you typed the command?

edited tags
Link
Gilles 'SO- stop being evil'
  • 865.9k
  • 205
  • 1.8k
  • 2.3k
Source Link
Jim
  • 10.6k
  • 17
  • 62
  • 88

History of commands and directories we were in

I was wondering: If I type history I can see the previous commands I typed and see what happened and perhaps keep commands as reference.
But I don't know in which directory I was when I typed the commands.
Is there a version of history that displays also the directory you were in when you typed the command?