I’m getting this error when I use untar() command used: untar(tarfile = “a.rar”, list = TRUE) It works when I use on my PC (Windows 10) but does not works on another PC (Linux 20.04) Thanks Answer This isn’t correct: You should specify a tape archive file such as “a.tar”, rather than a RAR-format file. The underlying utility on Windows
Tag: tar
How to generate a PAX Tar archive with an Global Extended Attributes (‘g’) initial entry?
In Linux, I am trying to generate an uncompressed PAX archive containing a Global Extended Attributes entry using either one of the following commands: A) Specifying the pax options (implies –xattrs): B) Specifying xattrs support (implies –format=pax): Both commands generate a file successfully, but when I open the file with my hex editor, the first entry has the ‘x’ type,
How to extract multiple *.tgz files to multiple directories using PERL?
I am learning PERL lang. I have forced (and little confused) the issue with extracting *.tgz files. My point which I want to achieve is to extract multiple *.tgz files to multiple folders. So the structure comes: I want to extract these files to directories: Can someone help me with this, or give some hints how to achieve it? Answer
Does tar exit code 123 always mean empty archive?
The tar man page only documents return codes 0, 1, and 2 but explains further: If a subprocess that had been invoked by tar exited with a nonzero exit code, tar itself exits with that code as well. This can happen, for example, if a compression option (e.g. -z) was used and the external compressor program failed. Another example is
showing status with large file transfers via netcat/nc
I am using nc/netcat to transfer a large tar stream. Is there a way for either side to show some kind of status? Like how much has been transferred and/or the speed while it is transferring? On the receiving end: On the sending end: Answer At its simplest, you could use pv – the pipe viewer: If you look in
tar package has different checksum for exactly the same content
Packaging a folder on a SUSE Linux Enterprise Server 12 SP3 system using GNU tar 1.30 always gives different md5 checksums although the file contents do not change. I run tar to package my folder that contains a simple text file: Nevertheless, although the content is exactly the same, the resulting tar always has a different md5 (or sha1) checksum:
How to list the folders/files of a file.tar.gz file inside a file.tar
I need to list the folder/files inside a certs.tar.gz which is inside file.tar without extracting them. Answer You may want to use and condition: Explanation: For listing of files we use If file is of type tar.gz: If file is of type tar: If file is of type tar.bz2: You can also search for files in any of the above
The directory is being deleted too early
I’m trying to create a tar file from a directory’s contents using Codec.Archive.Tar, but I also want to clean up the directory once the tar file has been created. Here’s a small example which demonstrates my issue: When I call the function listFile e.g. from within ghci, I get back which I’m guessing is caused by the tar file being
Tar search results in .sh file
I have to tar a list of files, without path, that is a result of a find via sh (for crontab use). In ubuntu’s shell each command works fine but in .sh not. I tried with : And also with But both failed. May someone help? Alternatives ? Additional scenario info: /myfolder/ contains: one1.log one2.log one3.log two1.log two2.log I want
Variable as Tar file name in SunOs 5.10
I am trying to get the following result in the 1.files archived as tar with current date as a part of the tar name. 2.files removed once archived. /usr/sap/ST1/POC/backtest/*.txt has 2 txt files. This works fine as the file name is mentioned as arc_2017-02-28.tar. But when I tried this: The output is an error: tar: : No such file or