Re: using tar

2020-06-15 Thread Teemu Likonen
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

Re: using tar

2020-06-15 Thread Michael Stone
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

Re: using tar

2020-06-15 Thread Michael Stone
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 /

Re: using tar

2020-06-15 Thread David Wright
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

Re: using tar

2020-06-15 Thread mick crane
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"

Re: using tar

2020-06-15 Thread Brian
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

Re: using tar

2020-06-15 Thread Greg Wooledge
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

Re: using tar

2020-06-15 Thread mick crane
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

Re: using tar

2020-06-15 Thread Thomas Pircher
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

Re: using tar

2020-06-15 Thread Tom Browder
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

Re: using tar

2020-06-15 Thread Brian
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.

Re: Using tar and gpg from Konqueror

2011-04-23 Thread Ken Heard
-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

Re: Using tar and gpg from Konqueror

2011-04-03 Thread Ken Heard
-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

Re: Using tar and gpg from Konqueror

2011-04-03 Thread Camaleón
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

Re: Using tar to extract files from tape

2006-07-13 Thread Rob Hensley
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

Re: Using tar to extract files from tape

2006-07-13 Thread Ron Johnson
-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

Re: Using tar to extract files from tape

2006-07-13 Thread Justin Piszcz
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

Re: Using tar to extract files from tape

2006-07-13 Thread Alec Berryman
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

Re: Using tar saving Disk-space [was: apt-get offline]

2001-06-07 Thread Joerg Johannes
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

Re: Using tar saving Disk-space [was: apt-get offline]

2001-05-30 Thread John Galt
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..

Re: Using tar saving Disk-space [was: apt-get offline]

2001-05-30 Thread David Z. Maze
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.)

Re: Using tar saving Disk-space [was: apt-get offline]

2001-05-30 Thread Matthew Gibbins
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

Re: Using tar saving Disk-space [was: apt-get offline]

2001-05-30 Thread Joerg Johannes
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

Re: Using tar saving Disk-space [was: apt-get offline]

2001-05-30 Thread Bart Martens
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