10 More Discussions You Might Find Interesting
I tarred a directory to a different location. I then deleted the original directory.
Now I need to restore the directory, and I am unable to do so (The contents do not get restored). However, when I type tar -tvf <tarfile), the list of contents are displayed :
# tar -tvf lhs20170405.tar... (7 Replies)
Discussion started by: anaigini45
2. UNIX for Dummies Questions & Answers
Would you please help me with a UNIX command that would check if file is a tar file.
if we dont have that , can you help me with UNIX command that would check if file ends with .tar
Thanks in advance. (10 Replies)
Discussion started by: sanjaydubey2006
I am trying to tar a directory structure. but unable to do due to a symbolic link. Please help
indomt@behpux $ tar -cvf test.tar /home/indomt
a /home/indomt symbolic link to /dxdv/03/ap1dm1
Thanks (1 Reply)
Discussion started by: nag_sathi
4. Shell Programming and Scripting
I have a tar file that contains multiple .Z files. Hence I need to issue a tar command followed by a gzip command to fully extract the files. How do I do it in a single command?
What I'm doing now is
tar xvf a.tar (this will output 1.Z and 2.Z)
gzip -d *.Z (to extract 1.Z and 2.Z) (9 Replies)
Discussion started by: ericlim
5. Shell Programming and Scripting
I have a tar file and inside that tar file is a folder with additional tar.gz files. What I want to do is look inside the first tar file and then find the second tar file I'm looking for, look inside that tar.gz file to find a certain directory. I'm encountering issues by trying to... (1 Reply)
Discussion started by: bashnewbee
6. Shell Programming and Scripting
if I have a tarfile called pmapdata.tar that contains
tar -tvf pmapdata.tar
-rw-r--r-- 0/0 21 Oct 15 11:00 2009 /var/tmp/pmapdata/pmap4628.txt
-rw-r--r-- 0/0 21 Oct 14 20:00 2009 /var/tmp/pmapdata/pmap23752.txt
-rw-r--r-- 0/0 1625 Oct 13 20:00 2009... (1 Reply)
Discussion started by: borderblaster
7. Shell Programming and Scripting
When I use -p option(preserve permissions) while creating tar archives, it throws error and creates archive in the name of 'p'. But without -p option I am able to create archive name as I mentioned.
how do I work it out with --preserve-permissions?
Any help is much appreciated.
... (3 Replies)
Discussion started by: learn more
I am using hp unix HP-UX B.11.11 .. Generally i do the compression to maintain the space availability . To compress the files first i used the TAR to collect all the files. it has done fine. when i am using command ls in the folder which has TAR file , it shows the TAR... (2 Replies)
Discussion started by: rdhaprakasam
9. UNIX for Dummies Questions & Answers
4 files are returned when i issue 'find . -mtime -1 -type f -ls'.
However, when I issued the below command:
tar -cvf test.tar `find . -mtime -1 -type f`, the tar file only contains the 1st file -... (2 Replies)
Discussion started by: ahSher
10. Shell Programming and Scripting
I want to tar multiple folder from a environment but exclude 2 folders among them. How can I do that. Is there any exclude option in tar command.
Please co-operate me.
Chandrakant. (8 Replies)
Discussion started by: get_chandrakant