I typically do: tar -czvf my_directory.tar.gz my_directory What if I just want to include everything (including any hidden system files) in my_directory, but not the directory itself? I don't want: archive - How do I tar a directory of files and folders without ... 0 A tar.gz is a tar file inside a gzip file, so 1st you must unzip the gzip file with gunzip -d filename.tar.gz , and then use tar to untar it.
However, since gunzip says it isn't in gzip format, you can see what format it is in with file filename.tar.gz, and use the appropriate program to open it. What does this have to do with a question about an archive created with tar and openssl? Your .run archive is created with a shar -style tool, which is completely different and not compatible with the tools this question is asked about. gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error ...
tar heel illustrated, tar -czf destination.tar.gz -C source/directory $(ls source/directory) This solution: Includes all files and folders in the directory Does not include any of the directory structure (or .) in the final product Does not require you to change directories. However, it requires the directory to be given twice, so it may be most useful in another ... linux - How do I tar a directory without retaining the directory ... This doesn't work for me in cmd.exe env: docker.exe load < windowsservercore.tar, returns requested load from stdin, but stdin is empty. The following one works though: docker.exe load -i windowsservercore.tar.