Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
Hello, How can i extract a .tgz file ? tar -zxvf sample.tar.gz gives the result --> bash: tar: command not found echo $PATH gives the result --> /usr/local/bin:/bin:/usr/bin Could someone ...
  1. #1
    Just Joined!
    Join Date
    Jun 2009
    Posts
    6

    Where is TAR ? tar: command not found

    Hello,
    How can i extract a .tgz file ?

    tar -zxvf sample.tar.gz gives the result --> bash: tar: command not found

    echo $PATH gives the result --> /usr/local/bin:/bin:/usr/bin

    Could someone explain ?

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    Tar should be in /bin and executable by everyone. Try /bin/tar instead. If that works, then your PATH environment variable is probably wrong. All Linux and Unix systems have tar installed - it is a basic tool that cannot go missing. If for some reason your system is missing it, then I suspect there is a lot more wrong there.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    Jun 2009
    Posts
    6

    Where is TAR ?

    Quote Originally Posted by Rubberman View Post
    Tar should be in /bin and executable by everyone. Try /bin/tar instead. If that works, then your PATH environment variable is probably wrong. All Linux and Unix systems have tar installed - it is a basic tool that cannot go missing. If for some reason your system is missing it, then I suspect there is a lot more wrong there.
    i am in the directory of sample.tgz
    at the prompt i type...

    bash-3.00$ /bin/tar tar -zxvf sample.tgz
    result
    bash: /bin/tar: No such file or directory

    bash-3.00$ /bin/tar -zxvf sample.tgz
    result
    bash: /bin/tar: No such file or directory

  4. #4
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    What distribution and version of Linux are you running? Is it Fedora, an old Red Hat, a newer Red Hat, or CentOS?
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  5. #5
    Just Joined!
    Join Date
    Jun 2009
    Posts
    6
    an old redhat. see below
    i only have SSH access (chrooted)
    it is a hosted server running PLESK version 8.4

    Nov 10 2005 20:40:56
    Configure Command './configure' '--build=i686-redhat-linux-gnu' '--host=i686-redhat-linux-gnu' '--target=i386-redhat-linux-gnu' '-

  6. #6
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    When you get into the system via ssh, what is the output of the command: uname -a
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  7. #7
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    In any case, the tar command should be available on the system. I can understand why some commands are removed from user access on a hosted system, but that should not be one of those. Contact your system administrator and have them restore tar, and any other missing utilities such as gzip, bzip2, and such.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  8. #8
    Just Joined!
    Join Date
    Jun 2009
    Posts
    6
    bash-3.00$ uname -a
    bash: uname: command not found

  9. #9
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    Well, from the looks of it, you are missing a lot of important system utilities. Personally, I think you need to give your hosting provider a whack up the side of the head, and refuse to pay until the standard system tools are made available to you. Just my opinion, but then I am just stating what I would do in your position...
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  10. #10
    Just Joined!
    Join Date
    Jun 2009
    Posts
    6
    Thanks,
    I suspected things might not be installed.
    i have sent an email to the host provider.........in the meantime
    Thank you all for the help Rubberman.

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...