I have a .gz
folder and I tried to unzip it using terminal by the following commands, but gave error.
gunzip access-2.log.gz
gzip -d access-2.log.gz
Then I followed the error in Ask Ubuntu, found this question
After that I gave the command in terminal
gunzip Desktop/project/data/access-2.log.gz
Why I'm getting this issue?
What is the solution to unzip the name.log.gz
folder?
file access-2.log.gz
, it will tell you the compression type.head access-2.log.gz
. Does it show the start of the log file?gzip
can compress only a single file at the time, it can't compress a folder or multiple files.mv access-2.log.gz access-2.log
and the issue is solved.