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?
History of commands and directories we were in
bash;command history