Re: Shell for gunzip so I don't have to remember?
Dnia Fri, 14 May 1999 14:18:32 -0700, napisałeś: On Wed, May 12, 1999 at 06:52:39PM -0500, André Bell wrote: ...now if I can only figure out which of the hundreds of files is the executable... Use ls -l and look for the executable bit (x) or use ls --color and look for the green ones. -- Ray [EMAIL PROTECTED] Hi, Maybe some of these aliases will help you. alias lsx='ls -F|grep \*$| cut -d \* -f 1|column' alias ll='ls -l|cut -b 31-41,55-|column' alias lsd='ls -F| grep /|cut -d / -f 1|column' alias lsh='ls -A|grep ^\..*|column' -- Krzysztof Ogrodnik mailto:[EMAIL PROTECTED] ICQ2963634
Re: Shell for gunzip so I don't have to remember?
On Wed, May 12, 1999 at 06:52:39PM -0500, André Bell wrote: ...now if I can only figure out which of the hundreds of files is the executable... Use ls -l and look for the executable bit (x) or use ls --color and look for the green ones. -- Ray [EMAIL PROTECTED]
Re: Shell for gunzip so I don't have to remember?
Just to add to this excellent explanation by Ray, in the Unix world it is still pretty common to see files compressed with the Unix compress utility, in which case you might see file names like: And while we're mentioning the unix world, you should note that the 'z' switch to tar (ie tar xvfz foo.tar.gz) is a GNU tar extension, so probably isn't going to work. Rob.
Re: Shell for gunzip so I don't have to remember?
You start with foo.tar.gz gunzip foo.tar.gz Now you have a file called foo.tar which should be much larger than foo.tar.gz was. tar -xvf foo.tar Now all the files are extracted from foo.tar As others have said, you can do this all in one step with tar -zxvf foo.tar.gz. In general, files that end in .tgz or .tar.gz are gziped tar archives while files that just end in .gz are really just one file. Thanks Ray and all, This was exactly the case. Though the unarchived file didn't have an extension after I ran gunzip it turned out to be a tar file. Once I ran tar -xvf on the file it uncompressed just fine. Now I have all the files I could see with winzip. Andre' ...now if I can only figure out which of the hundreds of files is the executable...
RE: Shell for gunzip so I don't have to remember?
On 12-May-99 André Bell wrote: Is there a good shell for gunzip so I don't have to remember all the operators? I ask because I must be doing something wrong. When I ungzip file.gz the system converts my .gz file to one file with no extension instead of unzipping the file and all of its contents. I know there are multiple files in the gzips that I look at because I can view all of the compressed files when I view the contents of the gzip file on my pc, just not with gzip on linux :( Is the file name something.tar.gz or something.tgz? If so try: tar zxvf something.tar.gz it should extract the files. gzip compresses one file usually, tar is used to make an archive of many files (whereas Windows usually tosses everything in one .zip).
Shell for gunzip so I don't have to remember?
Is there a good shell for gunzip so I don't have to remember all the operators? I ask because I must be doing something wrong. When I ungzip file.gz the system converts my .gz file to one file with no extension instead of unzipping the file and all of its contents. I know there are multiple files in the gzips that I look at because I can view all of the compressed files when I view the contents of the gzip file on my pc, just not with gzip on linux :( If you knoww why this happens and know what I need to do to work around it please let me know. Thanks! Andre' p.s. If the files are small enough when uncompressed I just uncompress them and then copy to a floppy before moving everything over to my debian/linux system. Seems there's gotta be a better way :( I'd use my modem in the debian pc but I'm only running a 486 there and it is terribly slow at downloading :( So I download with my pc and trasnfer via floppies.
Re: Shell for gunzip so I don't have to remember?
On Tue, May 11, 1999 at 04:56:30PM -0500, André Bell wrote: Is there a good shell for gunzip so I don't have to remember all the operators? I ask because I must be doing something wrong. When I ungzip file.gz the system converts my .gz file to one file with no extension instead of unzipping the file and all of its contents. I know there are multiple files in the gzips that I look at because I can view all of the compressed files when I view the contents of the gzip file on my pc, just not with gzip on linux :( Hi Andre gzip only compresses one file at a time, but those files are almost certainly tar archives. (They should end in .tar.gz, but your pc might have truncated the filenames.) You can extract them with tar -zvxf filename. You can also list the files in the archive with tar -ztf filename, t being the most obvious abbreviation for list :-) Matt -- Matt Folwell, Trinity College, Cambridge. CB2 1TQ [EMAIL PROTECTED]
Re: Shell for gunzip so I don't have to remember?
On 12-May-99 Matt Folwell wrote: Hi Andre gzip only compresses one file at a time, but those files are almost certainly tar archives. (They should end in .tar.gz, but your pc might have truncated the filenames.) You can extract them with tar -zvxf filename. You can also list the files in the archive with tar -ztf filename, t being the most obvious abbreviation for list :-) I thought Andre was looking for an alias, so he would not need to remember the switches. something like: alias tarx='tar -xvzf $1 $2 $3 $4 $5 $6' for his .bash_profile ? -- Andrew [PGP5.0 Key ID 0x5EE61C37]
Re: Shell for gunzip so I don't have to remember?
Hi, On Tue, May 11, 1999 at 04:56:30PM -0500, André Bell wrote: Is there a good shell for gunzip so I don't have to remember all the operators? I ask because I must be doing something wrong. When I ungzip file.gz the system converts my .gz file to one file with no extension instead of unzipping the file and all of its contents. I know there are multiple files in the gzips that I look at because I can view all of the compressed files when I view the contents of the gzip file on my pc, just not with gzip on linux :( If you knoww why this happens and know what I need to do to work around it please let me know. If they aren't .tar.gz/.tgz's, they might be .zip files (especially since you can view them in Windows. In that case, use unzip (package unzip). HTH, Robert -- Robert Vollmert [EMAIL PROTECTED]
Re: Shell for gunzip so I don't have to remember?
On Tue, May 11, 1999 at 04:56:30PM -0500, André Bell wrote: I ask because I must be doing something wrong. When I ungzip file.gz the system converts my .gz file to one file with no extension instead of unzipping the file and all of its contents. I know there are multiple files in the gzips that I look at because I can view all of the compressed files when I view the contents of the gzip file on my pc, just not with gzip on linux :( A gzip file only contains one file. Sometimes that one file happens to be a tar file (ie an archive) in which case you use tar to extract it's contents after you have unzipped it. For example: You start with foo.tar.gz gunzip foo.tar.gz Now you have a file called foo.tar which should be much larger than foo.tar.gz was. tar -xvf foo.tarNow all the files are extracted from foo.tar As others have said, you can do this all in one step with tar -zxvf foo.tar.gz. In general, files that end in .tgz or .tar.gz are gziped tar archives while files that just end in .gz are really just one file. If you knoww why this happens and know what I need to do to work around it please let me know. Thanks! Andre' p.s. If the files are small enough when uncompressed I just uncompress them and then copy to a floppy before moving everything over to my debian/linux system. Seems there's gotta be a better way :( I'd use my modem in the debian pc but I'm only running a 486 there and it is terribly slow at downloading :( So I download with my pc and trasnfer via floppies. -- Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] /dev/null
Shell for gunzip so I don't have to remember?
Is there a good shell for gunzip so I don't have to remember all the operators? I ask because I must be doing something wrong. When I ungzip file.gz the system converts my .gz file to one file with no extension instead of unzipping the file and all of its contents. I know there are multiple files in the gzips that I look at because I can view all of the compressed files when I view the contents of the gzip file on my pc, just not with gzip on linux :( If you knoww why this happens and know what I need to do to work around it please let me know. Thanks! Andre' p.s. If the files are small enough when uncompressed I just uncompress them and then copy to a floppy before moving everything over to my debian/linux system. Seems there's gotta be a better way :( I'd use my modem in the debian pc but I'm only running a 486 there and it is terribly slow at downloading :( So I download with my pc and trasnfer via floppies.
Re: Shell for gunzip so I don't have to remember?
Ray [EMAIL PROTECTED] writes: | On Tue, May 11, 1999 at 04:56:30PM -0500, Andri Bell wrote: | | I ask because I must be doing something wrong. When I ungzip file.gz the | system converts my .gz file to one file with no extension instead of | unzipping the file and all of its contents. | | I know there are multiple files in the gzips that I look at because I can | view all of the compressed files when I view the contents of the gzip file | on my pc, just not with gzip on linux :( | | A gzip file only contains one file. Sometimes that one file happens to be a | tar file (ie an archive) in which case you use tar to extract it's contents | after you have unzipped it. For example: | | You start with foo.tar.gz | | gunzip foo.tar.gz Now you have a file called foo.tar which | should be much larger than foo.tar.gz was. | | tar -xvf foo.tar Now all the files are extracted from foo.tar | | | As others have said, you can do this all in one step with tar -zxvf | foo.tar.gz. | | In general, files that end in .tgz or .tar.gz are gziped tar archives while | files that just end in .gz are really just one file. Just to add to this excellent explanation by Ray, in the Unix world it is still pretty common to see files compressed with the Unix compress utility, in which case you might see file names like: foo.Z and foo.tar.Z all the things Ray mentions apply to these files as well, gzip and tar can handle them in exactly the same manner as *.gz files are handled. Gary