The jdk file downloaded from the oracle official website in Linux is not a standard gzip file.

Source: Internet
Author: User

The jdk file downloaded from the oracle official website in Linux is not a standard gzip file.
The escape or tar. xz format cannot be avoided because someone may accidentally change the name after compression. Bytes. You can run the file command to check and confirm this. Therefore, there is no way to decompress the package.

Solution:

Download the file to the local host, upload it to the Linux server through SFTP, and decompress the file normally.

Method 1:

SecureCRT
To upload a file, you only need to enter the command "rz" in the shell terminal simulator to select the file on the local disk from the pop-up dialog box and upload it to the current path of the server using Zmodem.
To download a file, you only need to enter the command "sz file name" in the shell terminal simulator to use Zmodem to download the file to a local directory.
You can use "File Transfer" to modify the default download path to your local device. Set the default directory: options --> session options --> file transfer.

Method 2: sftp
Securecrt press ALT + P to start a new session for ftp operations.
Enter the "help" command to display all commands provided by the FTP.
Pwd: query the directory of the Linux host (that is, the remote host directory)
Lpwd: query the local directory (generally refers to the directory of files uploaded by windows: we can view the "session option" in the "option" drop-down box. 2: we know that the local upload directory is: D: /My Documents)
Ls: query the files in the directory of the current linux host.
Lls: queries the files in the current local upload directory.
LCD: change the path of the local upload directory
Cd: Change the remote upload directory
Get: downloads files from the remote directory to the local directory.
Put: upload files in the local directory to the remote host (linux)
Quit: disconnect FTP

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.