Once upon a time, Mark Haney <mhaney(a)practichem.com> said:
sudo xzcat Fedora-Minimal-armhfp-20-1-sda.raw.xz > /dev/sdb
I would get a 'Permission denied' error.
That's because the "> /dev/sdb" was parsed and handled by your user
shell (redirection is handled by the shell before running the command).
sudo only got "xzcat Fedora-Minimal-armhfp-20-1-sda.raw.xz" as
arguments. You should be able to quote what you want actually passed to
sudo:
sudo "xzcat Fedora-Minimal-armhfp-20-1-sda.raw.xz > /dev/sdb"
--
Chris Adams <linux(a)cmadams.net>