04-08-2015
What do you mean it will not "let" you, what happens when you try?
What system are you on? tar often has compression built in, if you use the appropriate option, i.e. -z for gzip, -j for bzip2: tar -zcf file.tar.gz input files ...
What sort of data is it? Text compresses very well, other data depends on how structured it is.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hi,
can i use the tar command to copy an entire directory and its content in another folder?
What is the proper syntax?
thx (2 Replies)
Discussion started by: tomapam
2 Replies
2. Solaris
I've backed up several files to tape using tar, and wish to list those that have backed up.
% tar cvf /dev/rmt/2un /s_1/oradata/pgpub/config.ora
a /s_1/oradata/pgpub/config.ora 2 tape blocks
But when I go to list the files:
% tar tvf /dev/rmt/2un
tar: tape read error
What am I... (3 Replies)
Discussion started by: FredSmith
3 Replies
3. Shell Programming and Scripting
:)
Hi,
I use the following command to search for a string in all the files in the directories and sub directories.
find . -type f -print | xargs grep bermun@cial.net
Can someone please cite a method wherin I can find the entries from a list of 300-500 *.gz files by modifying the above... (2 Replies)
Discussion started by: openspark
2 Replies
4. AIX
Hi,
Does anyone know if it is possible to tar files larger than 2GB? The reason being is they want me to dump a single file (which is around 20GB) to a tape drive and they will restore it on a Solaris box. I know the tar have a limitation of 2GB so I am thinking of a way how to overcome this.... (11 Replies)
Discussion started by: depam
11 Replies
5. Shell Programming and Scripting
Hi all,
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
1 Replies
6. 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
9 Replies
7. UNIX for Dummies Questions & Answers
Linux RHEL 5.4
It is easy to create a tarball when you have files same extension
For eg:
You want to tar all files with the extension .log . This is easy
tar -cvf diagnose.tar *.log
I have two files with different extensions .log and .sh :
error.log
myscript.sh
I want to create a... (5 Replies)
Discussion started by: John K
5 Replies
8. Solaris
Hi,
I am using solaris 10 OS.Please help me out with the commands needed in below two scenarios.
1)How to delete the existing files in the tar file.
suppose i have a main tarfile named application.tar and it contains a file called ingres.tar.
what is the command to remove ingres.tar... (2 Replies)
Discussion started by: muraliinfy04
2 Replies
9. UNIX for Dummies Questions & Answers
I am just creating tar.gz file with comand tar -zcvf xyz.tar.gz /home/xyz/*
xyz folder contains thousands of files mostly .c, .cpp, etc..
I see that many times all the files are not zipped.
Many files(in hundreds) are abruptly left out.
What may be the reason for this and how to resolve... (10 Replies)
Discussion started by: rupeshkp728
10 Replies
10. UNIX for Dummies Questions & Answers
My unzip command doesn't work for files that are greater than 4GB. Consider my file name is unzip -p -a filename.zip, the command doesn't work since the size of the file is larger. I need to know the corresponding 7z command for the same. This is my Unix shell script program:
if
then
... (14 Replies)
Discussion started by: chandraprakash
14 Replies
LEARN ABOUT DEBIAN
pacoball
PACOBALL(8) System PACOBALL(8)
NAME
pacoball - Binary package support for paco(8).
SYNOPSIS
pacoball [-bgftv] [-d DIR] [-1..9] [-a|<packages>]
pacoball -e [-ltv] [-C DIR] <pacoballs>
DESCRIPTION
By default, pacoball may be given one or more package names as arguments, and for each of those packages it creates a binary tarball
(.tar.bz2 or .tar.gz) containing all the currently installed files. For this to work the input packages have to be registered in the paco
database.
Leading slashes ('/') are stripped from the paths of the files in the tarballs.
With option -e, pacoball admits one or more previously created tarballs ("pacoballs") as arguments, and installs them into the system,
optionally logging the installation with paco.
Mandatory arguments to long options are mandatory for short options too.
GENERAL OPTIONS
-t, --test
Test compressed file integrity.
-h, --help
Show usage information and exit.
-v, --verbose
Verbose output.
-V, --version
Display version information and exit.
PACKAGE CREATION OPTIONS
-a, --all
Create a pacoball for each package logged in the paco database.
-d, --directory=DIR
Create the pacoballs in directory DIR (default is '.').
-b, --bzip2
Compress with bzip2 (this is the default).
-g, --gzip
Compress with gzip.
-# Set the compression level (speed/quality balance). '#' is a number between 1 (faster compression) and 9 (best compression).
--fast An alias for -1.
--best An alias for -9.
-f, --force
Force overwrite of existing output files.
PACKAGE EXTRACTION OPTIONS
-e, --extract
Extract (install) the given <pacoballs>, in directory '/' by default.
-l, --log
Log the file extraction with paco(8), retrieving the appropiate package name from the name of the pacoball.
-C, --root=DIR
Extract the files into directory DIR (as the -C option in tar).
FILES
/etc/pacorc - paco configuration file
/var/log/paco - default paco log directory
WEB SITE
The latest version of pacoball should be always available at:
http://paco.sourceforge.net
COPYRIGHT
Copyright (C) 2004-2009 David Rosal <davidrr@sourceforge.net>
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU-
LAR PURPOSE.
SEE ALSO
paco(8), pacorc(5), superpaco(8), rpm2paco(8)
paco-2.0.9 28 June 2010 PACOBALL(8)