Downloading JDK files from Oracle's official website in Linux is not a standard gzip format file issue

Source: Internet
Author: User
Tags ftp connection

first you need to know that in a Linux system, the file type is not related to the suffix name, the suffix is only for the convenience of identification, So the compressed package you download may be in tar.gz format, or it may be tar.bz2 or TAR.XZ format, because you may be compressed and accidentally changed the wrong name, which is also unavoidable. http://download.oracle.com/otn-pub/java/jdk/8u131-b11/d54c1d3a095b4ff2b6607d096fa80163/ Jdk-8u131-linux-x64.tar.gz points to a page, the specific download package is contained in a link on this page, so running the download command above is actually an HTML page. This can be verified with the file command. So there is no way to decompress.

Workaround:

Download the file to the local host, upload it to the Linux server via SFTP, and then unzip it properly.

The first way:

SECURECRT under
Upload a file simply enter the command "RZ" in the shell terminal emulator to select the file on the local disk from the popup dialog and upload it to the current path of the server using Zmodem.
Download file simply enter the command "SZ file name" in the shell terminal emulator to download the file to a local directory using Zmodem.
You can modify the default path that is downloaded to local by using "File Transfer". Set default directory: Options-->session options-->file transfer.

The second way: with SFTP
SECURECRT Press Alt+p to open a new session for FTP operation.
Input: The help command, which shows that FTP provides all the commands
PWD: Querying the directory where the Linux host resides (that is, the remote host directory)
LPWD: Querying a local directory (typically the directory where Windows uploads files: we can see "session Options" in the "Options" drop-down box, two: We know the local upload directory is: d:/My Documents)
ls: query which files are connected to the directory in which the current Linux host resides
LLS: Query what files are currently in the local upload directory
LCD: Change the path of the local upload directory
CD: Change the remote upload directory
Get: Download files from a remote directory to a local directory
Put: Uploading files from a local directory to a remote host (Linux)
Quit: Disconnect FTP connection

Downloading JDK files from Oracle website in Linux is not a standard gzip file problem

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.