So I tried to make a gzipped backup of my entire directory structure, but I inadvertently issued the command gzip -r ./
, hoping to add all files and folders to a single gzip archive.
This obviously is very wrong, but before I had time to quit, it gzipped each of my files individually (recursively) and deleted the original. Now I have a file structure that is completely made up of gzipped files. Does anyone know the command to undo what I have done (ie. extract the gzip file in place and then delete the gzip file)?
Edit: Credit to Greg, gunzip -r ./'
solved it!
find -type f -name '*.gz' | xargs gunzip
gunzip -r ./
?tar czf backup.tar.gz /
.