The redirection will happen in your shell, but the command will be called inside the shell invoked by sudo.  So that won&#x27;t work either unless you have write privs to the block device, but if that were the case, you probably didn&#x27;t need sudo to read the dmg file.  So this will likely fail for a reason other than the one you pointed out.