How long did that command take
If you want to know how long a command took to execute, you can use the Bash built-in command time. Simply prepend your command with time and once it finishes, it will tell you the duration.
time cp -R myfolder myfolder2
The output will be something like this
real 0m21.093suser 0m0.008ssys 0m0.717s
real - is the full time it took to run the command (how long you waited).
user - is the CPU time used by the program itself.
sys - is the CPU time used by the system calls
GNU time
There is also a gnu time command which gives a little bit more information. It also allows non-Bash users to time their commands.
/usr/bin/time cp -R myfolder myfolder2
You can typically run the GNU time command as follows
\time cp -R myfolder myfolder2




commands

Comments
There are no comments yet.