Time

Volker Wysk post at volker-wysk.de
Tue Nov 5 18:37:53 UTC 2019


Am Dienstag, den 05.11.2019, 18:15 +0000 schrieb Grizzly via ubuntu-
users:
> Hi All
> 
> While re-viewing the difference(s) between full-upgrade, dist-upgrade 
> and 
> upgrade
> 
> I came across (on Ask Ubuntu)
> 
> sudo apt update && time sudo apt upgrade
> 
> So it may be a stupid question but what does "time" do in the middle
> there?
> 
> I know that if update is not run often and is on a slow connection,
> sudo can 
> time out before before that second sudo command (so need password
> again) is 
> this a work-around? or a check to insure the password is required

"time" measures the time used by the specified program. The program
("apt upgrade" in your case) is executed and time statistics are
printed afterwards. It's not a workaround.

See time(1).

Volker





More information about the ubuntu-users mailing list