Time

Grizzly Real_Grizz_Adams at yahoo.co.uk
Tue Nov 5 18:48:56 UTC 2019


05 November 2019  at 19:37, Volker Wysk wrote:
Re: Time (at least in part)

Thanks

>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.

So at the boundry between needing and not needing the password again it "could" 
make a small difference, but normally it will not have that effect




More information about the ubuntu-users mailing list