A word from our sponsors

History

Rerun a command

Rerun a previously entered command again in a different context.

First run, count all filesystem objects under the /tmp path:

user@host:~$ find /tmp | wc -l
1376

Rerun the same command, but this time in the context of the time command in order to measure how long it takes to complete:

user@host:~$ time !!
time find /tmp/ | wc -l
1376

real	0m0.008s
user	0m0.000s
sys	0m0.004s
This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website. More information about cookies