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