Bash gunzip错误

时间:2014-06-03 09:33:47

标签: bash gunzip

尝试恢复文件时#34; derp"终端打印 derp0000644000175000017500000000000512343302711011660 0ustar UserUserDerp 并且没有解压缩文件,我很困惑有人可以帮助我吗?

# 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"

1 个答案:

答案 0 :(得分:0)

" gunzip -c"解压缩到stdout而不是文件。使用" man gunzip"审查gunzip的选项。