Skip to main content
Formatting and markup, mostly
Source Link
Kusalananda
  • 356.1k
  • 42
  • 737
  • 1.1k

hope im posting in the right community imI'm trying to get my terminal  (macOS) to print the previous commands that iv'eI've used, as well as the timestamps to go with them.

I know that if I use 'history man'history man, it will give me a list of the past 1000 or so, and if I use 'history -E'history -E, it will give commands with timestamps though only about 20 or so anyway.

Is there any way to concatenate them, so I get the time stampstimestamps for all appreciate any help.?

hope im posting in the right community im trying to get my terminal(macOS) to print the previous commands that iv'e used as well as the timestamps to go with them I know that if I use 'history man' it will give me a list of the past 1000 or so and if I use 'history -E' it will give commands with timestamps though only about 20 or so anyway to concatenate them so I get the time stamps for all appreciate any help.

I'm trying to get my terminal  (macOS) to print the previous commands that I've used, as well as the timestamps to go with them.

I know that if I use history man, it will give me a list of the past 1000 or so, and if I use history -E, it will give commands with timestamps though only about 20 or so.

Is there any way to concatenate them, so I get the timestamps for all?

edited tags
Link
Kusalananda
  • 356.1k
  • 42
  • 737
  • 1.1k
Source Link

How do I get terminal to print command history with timestamps for all commands

hope im posting in the right community im trying to get my terminal(macOS) to print the previous commands that iv'e used as well as the timestamps to go with them I know that if I use 'history man' it will give me a list of the past 1000 or so and if I use 'history -E' it will give commands with timestamps though only about 20 or so anyway to concatenate them so I get the time stamps for all appreciate any help.