Domanda
Durante il tentativo di ripristinare il file "derp" La terminale stampe derp000064400017500001500000000000517500000000000512343302711011660 0USTAR UserSerderP. E non disimballa i file, sono confuso può qualcuno aiutarmi?
# let the user choose what they want to Restore
echo -n "Select the file or directory you want to Restore"
read chosendata
echo -e "Starting Restore"
# unziping files
gunzip -c ${chosendata}
# end the backup.
echo -e "Restore complete"
. Soluzione
"gunzip -c" decomputa a stdout piuttosto che a un file.Usa "Man Gunzip" per recensire le opzioni per Gunzip.
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow