"A. Dumas" writes:
> On 26/03/2018 01:10, Roger Bell_West wrote:
>> On 2018-03-25, bob prohaska wrote:
>>> What I expected to use was something like
>>> sudo unzip -p *.zip | dd of=/dev/sdc
>>> but that gives a permissions error, then reports an archive error after the
>>> password is entered.
>>
>> Well, the sudo there only applies to the unzip, not to the dd.
>
> Yeah and you can't pipe to sudo.
Yes you can...
>> I'd be more inclined to go to a proper root prompt (su -, or sudo su -
>> if you have to)
or: sudo -s
>> and then try the rest of the incantation without the
>> sudo. No need for password entry.
>
> It could work but if it fails you have no idea where it went wrong,
> unpacking or writing.
I don’t see why, provided you’re prepared to read the error message.
--
https://www.greenend.org.uk/rjk/
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|