0

I have a .gz file on Downloads directory

But when I try to run it using

tar zxvf jre-8u151-linux-i586

I get tar (child): jre-8u151-linux-i586: Cannot open: No such file or directory tar (child): Error is not recoverable: exiting now tar: Child returned status 2

What is wrong? The name and place matches prefectly.

  • is your file named "jre-8u151-linux-i586" (without quotes), as the system is reporting there is no file or directory of that name. if .gz was part of the filename it must be provided as it IS part of the filename. – guiverc Nov 25 '17 at 12:04
  • Also, if the file is just foo.gz, as opposed to foo.tar.gz, then you should use gunzip, not tar. – fkraiem Nov 25 '17 at 12:17
  • 1
    If the intention REALLY is to run it, then tar and/or gunzip is not the solution. tar creates and extracts archive files, gzip/gunzip compresses files. – Hannu Nov 25 '17 at 16:52
0

You forgot the file extension. The correct command is:

tar zxvf jre-8u151-linux-i586.tar.gz

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.