본문 바로가기

카테고리 없음

Linux Command To Download File



  • Taking the 'just Bash and nothing else' strictly. Use command line to download file which is accessible only in a given session. Linux is a registered.
  • How to download files using the Wget command in Linux the wget utility retrieves files from World Wide Web (WWW) using widely used protocols like HTTP, HTTPS and FTP. This utility can be install.

Jump to How to Download Multiple Files with Wget - If you want to download multiple files at once. Arch Linux, Debian, and Fedora iso files with.

Suppose that we have a full URL of desired file e.g.

I would like to go without installing a new software. Is it possible?

Linux command to download file from serverCommand

Command

doesn't work ;)

0x6B6F77616C74
0x6B6F77616C740x6B6F77616C74

6 Answers

Open terminal and type

to download the file to the current directory.

will download the file to /home/omio/Desktop

will download the file to /home/omio/Desktop and give it your NewFileName name.

devav2devav2

I use axel and wget for downloading from terminal, axel is download accelerator

syntax

axel

wget

for more details type man axel, man wget in terminal

Community
TachyonsTachyons

you can do it by using curl .

The -O saves the file with the same name as in the url rather than dumping the output to stdout

For more information

rɑːdʒɑrɑːdʒɑ

Just to add more flavor to this question, I'd also recommend that you take a look at this:

history -d $((HISTCMD-1)) && echo '[PASSWORD]' | sudo -S shutdown now

You could use this to shutdown your computer after your wget command with a ; perhaps or in a bash script file.

This would mean you don't have to stay awake at night and monitor until your download as (un)successfully run.

Community
dearNdearN

the lack of Aria2 mention is just a disservice so with that said, check out Aria2. https://aria2.github.io/

Install it by simply typing in terminal:

Then simply type this to download the file:

You can find more help with aria2 by its man page.

Michael TunnellMichael Tunnell
Do Nhu VyDo Nhu Vy

protected by CommunityJan 15 '14 at 8:21

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?

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

I'm normally a windows user and I am currently using PuTTY to connect to a headless linux box that is running Fedora 8. I need to download the latest JDK and install it but I have to do it using the command line.

How can I do this?

JaredJared

Ubuntu Download Command Line

7 Answers

You download files using the command line by using wget:

See the wget man page for options.

Dave DragerDave Drager

You can use wgetcurl: or may be lynx:

Please see the man page for options.

Ali MezganiAli Mezgani

This is why it is a good idea to install lynx on headless servers, and learn how to use lynx as well. This provides you with text-mode web browsing through a shell prompt, including the ability to download files. Because lynx is often used as the basis for web browsing for blind people, most websites do make an effort to support it.

Linux

Lynx would allow you to go to http://www.sun.com, browse to the Java download page, select what you want and download it.

Alternatively, you could download what you need onto your Windows workstation, then use pscp.exe (the scp that comes with Putty) to copy it through the ssh link to the server. That might be the easiest way to handle your particular situation today. If you want a graphical SCP client, then have a look at WinSCP.

Michael DillonMichael Dillon

You can grab a link to the download from http://java.sun.com/javase/downloads/index.jsp you need to progress through Sun's download page until you reach the actual link to the download, e.g cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/VerifyItem-Start/jdk-6u16-linux-i586.bin?BundledLineItemUUID=p5xIBe.psLUAAAEkDw4ek212&OrderID=aAtIBe.pOx4AAAEkAg4ek212&ProductID=Dx1IBe.prBgAAAEirRcTvuC_&FileName=/jdk-6u16-linux-i586.bin.

Linux Command To Download Zip File

Now in your shell just type 'wget ' followed by the url. once its downloaded, execute 'sh jdk-6u16-linux-i586.bin' and run through the installer.

Jamie

For setting up Java tools on Fedora systems, I highly recommend using http://www.jpackage.org/, which will give you an RPM of the JDK you can install.

David PashleyDavid Pashley

Have you tried using the CLI package manager? For Fedora this is yum used as such:

yum search *pattern*

yum install *program*

SchmidtSchmidt

This works for me - directly from the server:

Linux Command To Download Tar File

wget -H --follow-ftp -r http://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/VerifyItem-Start/sges-2_1_1-linux.bin?BundledLineItemUUID=KwFIBe.oLm0AAAEmpBwE680I&OrderID=aupIBe.oEnAAAAEmlBwE680I&ProductID=dc5IBe.olfwAAAEkB7xn4X5b&FileName=/sges-2_1_1-linux.bin

Command To Download File In Linux

Jon

Linux Command To Download File From Server To Local Machine

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