Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • have you checked history command?? Commented Dec 3, 2014 at 21:52
  • ya i know about history but that doesn't give just my session Commented Dec 3, 2014 at 23:21
  • The amount saved between sessions is controlled by the SAVEHIST shell variable if I recall. Thus if the amount of history you saved last time was ZERO, then you'd get history for the current shell session (but of course not at the sub levels) Commented Dec 3, 2014 at 23:27
  • @mdpc, what docs are you reading? In the Bash man page I find no reference to SAVEHIST but only to HISTSIZE and HISTFILESIZE. Commented Feb 1, 2017 at 7:54