About 13,200,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. How can I recover files from a corrupted .tar.gz archive?

    Jul 26, 2016 · I have a large number of files in a .tar.gz archive. Checking the file type with the command file SMS.tar.gz gives the response gzip compressed data - deflate method , max compression When …

  7. Tar archiving that takes input from a list of files

    The tar man page is extremely unhelpful for this option (at least on RedHat 5.4 thru 6.3): "-T: get names to extract or create from file F". "Extract or create" sounds like it applies to taking files out of the tar …

  8. How to tar certain file types in all subdirectories?

    Sep 11, 2013 · 122 I want to tar and all .php and .html files in a directory and its subdirectories. If I use tar -cf my_archive * it tars all the files, which I don't want. If I use tar -cf my_archive *.php *.html it …

  9. linux - tar:invalid magic, tar:short read - Stack Overflow

    Feb 2, 2021 · Automatic detection of the compression format is a GNU feature. For BusyBox and other tar s, specify the format explicitly (busybox tar --help): -Z (De)compress using compress -z …

  10. compression - Create a tar.xz in one command - Stack Overflow

    Sep 17, 2013 · I am trying to create a .tar.xz compressed archive in one command. What is the specific syntax for that? I have tried tar cf - file | xz file.tar.xz, but that does not work.