Find the answer to your Linux question:
Results 1 to 6 of 6
All I know about wget is it works like this: Code: wget LINK My questions is whether the "LINK" has to be a direct download link? Also, is there more ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2012
    Posts
    19

    wget


    All I know about wget is it works like this:
    Code:
    wget LINK
    My questions is whether the "LINK" has to be a direct download link? Also, is there more that I need to know about it?

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,453
    LINK is a URL such as http://computer.domain/.../filename
    Example: wget http://some.system.com/files/filename.txt
    That will download the specified file to your local directory as 'filename.txt'.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    Sep 2012
    Posts
    19
    So if it was bum.com/index.php, it will download index.php? Please go more into what is allowed and not allowed if possible.

    P.S. I can't quote people when they have http in it...

  4. #4
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,453
    The wget command will download the file pointed to by the URL to your local system. For example, if you were to issue the command "wget http://www.foobar.com", it would probably download the file "index.htm" or "index.html" from www.foobar.com. If you were to issue the command "wget http://www.foobar.com/files/somefile.txt" and that file exists on the remote site, then "somefile.txt" will be downloaded to your local directory.

    Is it getting clearer yet?
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  5. #5
    Just Joined!
    Join Date
    Sep 2012
    Posts
    19
    Yup. Much clearer.

    Is there restrictions? Like PHP files?

  6. #6
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,453
    Quote Originally Posted by dalawh View Post
    Yup. Much clearer.

    Is there restrictions? Like PHP files?
    Not that I'm aware of. I use it all the time - probably daily, to download files from the internet.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •