About 9,660,000 results
Open links in new tab
  1. archive - How do I tar a directory of files and folders without ...

    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:

  2. bash - Listing the content of a tar file or a directory only down to ...

    I wonder how to list the content of a tar file only down to some level? I understand tar tvf mytar.tar will list all files, but sometimes I would like to only see directories down to some level.

  3. linux - How do I tar a directory without retaining the directory ...

    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 …

  4. Shell command to tar directory excluding certain files/folders

    Jun 12, 2009 · Is there a simple shell command/script that supports excluding certain files/folders from being archived? I have a directory that need to be archived with a sub directory that has a number of …

  5. linux - How to extract filename.tar.gz file - Stack Overflow

    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 …

  6. linux - difference between tar zxf vs -xvf - Stack Overflow

    You renamed the openresty-1.9.7.3.tar to openresty-1.9.7.3.tar.gz, but this didn't make it gzipped tar archive. So first command fails, because this can't be gunzipped. Second command just verbosely …

  7. archive - How do I extract a tar file in Java? - Stack Overflow

    Nov 24, 2008 · I haven't used a tar API directly, but tar and bzip2 are implemented in Ant; you could borrow their implementation, or possibly use Ant to do what you need. Gzip is part of Java SE (and …

  8. what does -zxvf mean in tar -zxvf <filename>? [closed]

    Only the last option in such a set is allowed to have an argument (1). This old way of writing 'tar' options can surprise even experienced users. For example, the two commands: tar cfz archive.tar.gz file tar …

  9. How to load a Docker image from a tar file - Stack Overflow

    Jan 28, 2021 · The .tar created from docker save provides a ton of context that is lost when imported with docker import -- using docker load -i instead maintains that context and allows the image to be …

  10. linux - tar: Error is not recoverable: exiting now - Stack Overflow

    Oct 16, 2010 · The tar program can use external compression programs gzip, bzip2, xz by opening a pipe to those programs, sending a tar archive via the pipe to the compression utility, which …