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 workaround should you want it. I do not
Tag: tar
scp .tar file from remote machine using C program & libssh
I have written a code which read file from remote device using libssh scp APIs. I have a specific requirement wherein I want to scp a .tar file from a remote device. I am able to read .tar content into a buffer, but I am not sure how to create .tar file out of that buffer. Any help would be
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 (–file) short options (-f) old options (f)
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/directories? Answer
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.
when adding files to tar the tar overwrites itself halfway through the command [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question
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 dumb files.
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 running and is still
popen (“tar xvf tarball.tar”) works in debug but not release builds
I’m working on a C++ program for Ubuntu that downloads a tar archive using curl_easy_perform, and after the archive is downloaded into /tmp I use popen to execute the appropriate tar command line. When I run my program’s debug build then popen(“tar xvf /tmp/example.tar -C /tmp/existingdir”) works, but when I run this command in release builds the popen call always
How to grep for a pattern in the files in tar archive without filling up disk space
I have a tar archive which is very big ~ 5GB. I want to grep for a pattern on all files (and also print the name of the file that has the pattern ) in the archive but do not want to fill up my disk space by extracting the archive. Anyway I can do that? I tried these, but