mick crane [2020-06-15T19:01:32+01] wrote:
> I think my memory has packed up.
Mine too, and I like GNU's long-option style because I remember them
easily. They are also kind of self-documenting code in shell scripts.
tar --create --verbose --xz --file archive.tar.xz directory/to_archive
Bas
On Mon, Jun 15, 2020 at 07:30:31PM +0100, mick crane wrote:
yes I see that now
but without hyphen "f" can be anywhere
Yes and no: any of the keys can be in any location, but their arguments
must follow the key list in the order that the keys appear. For example:
tar cbf 20 foo.tar /dev/null
On Mon, Jun 15, 2020 at 02:34:24PM -0500, David Wright wrote:
It appears you've also forgotten about man pages as well as google.
The man page explains the difference between hyphenated and
unhyphenated forms, and helpfully even gives a single example
written in both forms:
tar cfv a.tar /
On Mon 15 Jun 2020 at 19:30:31 (+0100), mick crane wrote:
> On 2020-06-15 19:17, Thomas Pircher wrote:
> > mick crane wrote:
> > > I thought you put the options after a hyphen with tar ?
> >
> > Tar accepts 3 styles of options. The style with a single dash is called
> > the 'UNIX' or 'short-option
On 2020-06-15 19:17, Thomas Pircher wrote:
mick crane wrote:
I thought you put the options after a hyphen with tar ?
Tar accepts 3 styles of options. The style with a single dash is called
the 'UNIX' or 'short-option' style in the man page.
"tar -cfvz archive_file.tgz ./directory_to_archive"
On Mon 15 Jun 2020 at 19:24:00 +0100, mick crane wrote:
> On 2020-06-15 19:07, Brian wrote:
> > On Mon 15 Jun 2020 at 19:01:32 +0100, mick crane wrote:
> >
> > > I think my memory has packed up.
> >
> > So has your ability to use a search engine. Try
> >
> > tar options hyphen
>
> Ok I see w
On Mon, Jun 15, 2020 at 07:01:32PM +0100, mick crane wrote:
> I think my memory has packed up.
> I thought you put the options after a hyphen with tar ?
> "tar -cfvz archive_file.tgz ./directory_to_archive"
> doesn't work.
> "tar cfvz archive_file.tgz ./directory_to_archive"
> works
Your fundament
On 2020-06-15 19:07, Brian wrote:
On Mon 15 Jun 2020 at 19:01:32 +0100, mick crane wrote:
I think my memory has packed up.
So has your ability to use a search engine. Try
tar options hyphen
Ok I see what the confusion was "f" has to be the last of the options if
using hyphen
mick
--
K
mick crane wrote:
> I thought you put the options after a hyphen with tar ?
Tar accepts 3 styles of options. The style with a single dash is called
the 'UNIX' or 'short-option' style in the man page.
> "tar -cfvz archive_file.tgz ./directory_to_archive"
> doesn't work.
The `-f` option requires a
On Mon, Jun 15, 2020 at 13:02 mick crane wrote:
> I think my memory has packed up.
> I thought you put the options after a hyphen with tar ?
> "tar -cfvz archive_file.tgz ./directory_to_archive"
You do for modern use, but the 'f' has to be the last arg in that
incantation.
-Tom
On Mon 15 Jun 2020 at 19:01:32 +0100, mick crane wrote:
> I think my memory has packed up.
So has your ability to use a search engine. Try
tar options hyphen
--
Brian.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Camaleón wrote:
> On Sat, 02 Apr 2011 12:38:05 +0700, Ken Heard wrote:
>
>> While experimenting with tar and gpg files I discovered that right
>> clicking on a file or directory name in Konqueror with gnugp installed
>> behaves differently depending o
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Camaleón wrote:
> On Sat, 02 Apr 2011 12:38:05 +0700, Ken Heard wrote:
>
>> While experimenting with tar and gpg files I discovered that right
>> clicking on a file or directory name in Konqueror with gnugp installed
>> behaves differently depending o
On Sat, 02 Apr 2011 12:38:05 +0700, Ken Heard wrote:
> While experimenting with tar and gpg files I discovered that right
> clicking on a file or directory name in Konqueror with gnugp installed
> behaves differently depending on its location. If the file or directory
> is located on an ext3 or x
On Thu, 13 Jul 2006, Ron Johnson wrote:
> gpgkeys: HTTP fetch error 7: couldn't connect: eof
> Haines Brown wrote:
> > I asked this question before, but received no answer. Sorry to
> > post it again.
> >
> > The question is a simple one: can I use tar to extract a file
> > from a tape backup made
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Haines Brown wrote:
> I asked this question before, but received no answer. Sorry to
> post it again.
>
> The question is a simple one: can I use tar to extract a file
> from a tape backup made with a backup application?
Depends on the format. "Tape
On Thu, 13 Jul 2006, Alec Berryman wrote:
Haines Brown on 2006-07-13 09:48:02 -0400:
I tried:
# tar xvf /dev/st0 *.xyz
tar: /dev/st0: Cannot read: Input/output error
tar: At beginning of tape, quitting now
tar: Error is not recoverable: exiting now
When I tried the tvf optio
Haines Brown on 2006-07-13 09:48:02 -0400:
> I tried:
>
> # tar xvf /dev/st0 *.xyz
> tar: /dev/st0: Cannot read: Input/output error
> tar: At beginning of tape, quitting now
> tar: Error is not recoverable: exiting now
>
> When I tried the tvf options for tar, I get the same resul
Thank you, this is exactly what I was looking for.
Except the line
> tar -u $foo -f packages.tar
has to be changed into
tar uf packages.tar
The script I was referring to is the one created by apt-get -qq
-print-uris etc.
I would have to add the above line to every downloaded package. I think
yo
On Wed, 30 May 2001, Joerg Johannes wrote:
>Hi list
>
>Now that I can transfer my downloaded .debs in a .tar file, I wonder if
>I could create this .tar file saving disk space, e.g. in the following
>way
>
>
>create a tar file (touch packages.tar?)
unnecessary, and in fact will break the script..
Joerg Johannes <[EMAIL PROTECTED]> writes:
JJ> Now that I can transfer my downloaded .debs in a .tar file, I wonder if
JJ> I could create this .tar file saving disk space, e.g. in the following
JJ> way
JJ>
JJ>
JJ> create a tar file (touch packages.tar?)
JJ> for *.deb in this directory
JJ>1.)
And yo was Joerg Johannes heard to yodel:
>
> Well, I know how to use tar in general. Zipping the .debs is not
> necessary because they are already zipped. What I meant is: The .tar
> file takes the same amount of space as the .debs themselves. So after
> having tarred them , I need twice the spac
Well, I know how to use tar in general. Zipping the .debs is not
necessary because they are already zipped. What I meant is: The .tar
file takes the same amount of space as the .debs themselves. So after
having tarred them , I need twice the space as before. So I want to
delete each .deb after hav
You can compress all .deb files into one zipped tar file
with only one command. See the manual page of tar. You
don't need to write code with a "for"-loop. I think it's
tar czf packages.tar.gz debdir
with debdir the directory containing all your .deb files,
and packages.tar.gz the target zipped ta
24 matches
Mail list logo