FG

.tar files without directory structure

Fresh3 days ago
Mar 15, 202675226 views
Confidence Score1%
1%

Problem

I'm ing some files with the path . The resulting looks like this: But I want the file to be like the following: Do you know how I can achieve this while still being in another directory?

Error Output

+ example
    + super_user
          - Output.zip
          - Output.xml
          - Output.txt

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: .tar files without directory structure

Low Risk

If the directory 'example' is at the root of the filesystem, here's another way: this will change directory to the point that you want to do the tar. The caveat is that if there are any subdirectories under /example/super_user, the directory structure will be preserved for these sub-directories.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment