Skip to content

Tag: tar

Why does tar -c command remove leading `/’ from member names

Looking to find the practical reasons the command tar -c /filea > /fileb gives the following output: tar:Removing_leading / from member names. I have researched it quite a bit but only come across very vague reasons such as protects against some sort of attack etc. The majority just give explanations on a …

How tar xvfz works in cygwin?

I tried tar with xvfz and -xvfc both didn’t work in Cygwin on Windows. Here cmd tar with ‘-‘ Question : 1 . How does tar works with – or without _ ? Please suggest to execute tar -xvfz sshpass-1.0.5.tar.gz. Answer tar has 3 types of syntax (according to this ): long options (–fil…

Linux tar command ignore files which permission denied

I encountered an issue when I tar a directory. There is a backup file in one of the sub directory created by another user and it doesn’t allow other user to read. so my tar command was failed. My question is: Can I ignore this file (actually this file is not important) and tar the rest of the files/dire…

can’t extract tar.gz file

I used backup.sh : in /home/sebastien/save i have: i’m trying to extract this file with : but Nothing is happening /home/sebastien/tmp is empty! Answer Try removing that other command which blocks the process.

Repack tar.gz to tar and exclude some files

I have a big backup.tar.gz file (260 GB) and about 160 GB of free storage space. Backup file contains three big dumb file (old backups, about 190 GB), which is not needed. So I want to untar backup.tar.gz to pipe excluding some files and tar it back without gzip. I have a text file, which contain names of dum…

Linux: Stopping tar command?

Uh I badly messed up today, I was going to backup my whole website folder (public_html) and didn’t realize that it was 24GB, now it’s eating up disk usage and I have no idea how to stop it. The command I used was: I deleted the existing backup.tar.gz from the directory but the command is still run…