Ubuntu – Using tar showing, “No Such file or directory”

14.04tar

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.

Best Answer

You forgot the file extension. The correct command is:

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