Skip to main content

Thread: timestamps in terminal output


i need prove did things in order when using terminal. example when calculating hashs of disk images have show image x done before y , z. there way print timestamp command line output?

if you'd time every command, might check bash's prompt_command shell variable.

put date command it. see date --help.

or perhaps write script prints date before each relevant command, e.g.:
code:
echo -n "`date --rfc-3339=ns` " ./hash_cmd disk1.img


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support New to Ubuntu [ubuntu] timestamps in terminal output


Ubuntu

Comments

Popular posts from this blog

Error compiling for board Arduino/Genuino Uno.

Installation database is corrupt

esp8266 (nodemcu 0.9) client.write très lent ???