Ubuntu – How to track time from the command-line

command linescripts

I am looking for a command to track the time.

I imagine the following workflow:

  1. Run the command
  2. …do something else…
  3. Return to the terminal window and stop the command
  4. As an output you receive the time elapsed between 3 and 1

Best Answer

This answer suggests to use

time cat

and use Ctrl-D to see the time.

You can also use

time read

and use Enter key

Also check this answer on the same question

Related Question