viewing contents of tar/tar.gz/tgz files

Colin Watson cjwatson at canonical.com
Mon Oct 18 11:56:13 UTC 2004


On Mon, Oct 18, 2004 at 03:49:14AM -0400, volvoguy wrote:
> I'll admit - I'm no command line whiz, so the answer to my question
> may be embarrasingly simple.
> 
> I'm used to being able to run:
> 
> less somefile.tar.gz
> 
> and have it display the contents of the file.
> 
> When I do this in Ubuntu, I get the message:
> 
> '"somefile.tar.gz" may be a binary file.  See it anyway?'
> 
> So what's different in Ubuntu that it doesn't allow me to do what I've
> been doing for years on other distros?

It's in your .bashrc, but commented out by default:

  # make less more friendly for non-text input files, see lesspipe(1)
  #[ -x /usr/bin/lesspipe ] && eval "$(lesspipe)"

-- 
Colin Watson                                    [cjwatson at canonical.com]




More information about the ubuntu-users mailing list