Skip to main content
indent code by 4 spaces instead of making it bold, thanks!
Source Link
slhck
  • 230.2k
  • 71
  • 621
  • 603

Just add ?dl=1?dl=1 at the end of the link!

  For example: https://www.dropbox.com/s/mx9eqve5l2ipgyk/test.txt?dl=1https://www.dropbox.com/s/mx9eqve5l2ipgyk/test.txt?dl=1

That should give you a fine retrieval of the file in question without adding anything to the file!.

One more thing! If you wanna save the file somewhere else use the -O-O option like this >> wget -O /root/Desktop/test.txt "https://www.dropbox.com/s/mx9eqve5l2ipgyk/test.txt?dl=1"

wget -O /root/Desktop/test.txt "https://www.dropbox.com/s/mx9eqve5l2ipgyk/test.txt?dl=1"

And if you wannawant to have a little bit of guiGUI you can use zenityzenity to mark the location to where the file is going to be downloaded!

Here's an example code!

#!/bin/bash

dir=$(zenity --file-selection --directory)

wget -O $dir/test.txt "https://www.dropbox.com/s/mx9eqve5l2ipgyk/test.txt?dl=1":

I hope this could help you I just figure it out cuz I had the same problem while I was downloading a file especially a text based file and got corrupted *.tar files too.

#!/bin/bash
dir=$(zenity --file-selection --directory)
wget -O $dir/test.txt "https://www.dropbox.com/s/mx9eqve5l2ipgyk/test.txt?dl=1"

Just add ?dl=1 at the end of the link!

  For example: https://www.dropbox.com/s/mx9eqve5l2ipgyk/test.txt?dl=1

That should give you a fine retrieval of the file in question without adding anything to the file!

One more thing! If you wanna save the file somewhere else use the -O option like this >> wget -O /root/Desktop/test.txt "https://www.dropbox.com/s/mx9eqve5l2ipgyk/test.txt?dl=1"

And if you wanna have a little bit of gui you can use zenity to mark the location to where the file is going to be downloaded!

Here's an example code!

#!/bin/bash

dir=$(zenity --file-selection --directory)

wget -O $dir/test.txt "https://www.dropbox.com/s/mx9eqve5l2ipgyk/test.txt?dl=1"

I hope this could help you I just figure it out cuz I had the same problem while I was downloading a file especially a text based file and got corrupted *.tar files too.

Just add ?dl=1 at the end of the link! For example: https://www.dropbox.com/s/mx9eqve5l2ipgyk/test.txt?dl=1

That should give you a fine retrieval of the file in question without adding anything to the file.

One more thing! If you wanna save the file somewhere else use the -O option like this

wget -O /root/Desktop/test.txt "https://www.dropbox.com/s/mx9eqve5l2ipgyk/test.txt?dl=1"

And if you want to have a little bit of GUI you can use zenity to mark the location to where the file is going to be downloaded!

Here's an example code:

#!/bin/bash
dir=$(zenity --file-selection --directory)
wget -O $dir/test.txt "https://www.dropbox.com/s/mx9eqve5l2ipgyk/test.txt?dl=1"
Source Link
Ismael Segui
  • 1.6k
  • 2
  • 8
  • 3

Just add ?dl=1 at the end of the link!

For example: https://www.dropbox.com/s/mx9eqve5l2ipgyk/test.txt?dl=1

That should give you a fine retrieval of the file in question without adding anything to the file!

One more thing! If you wanna save the file somewhere else use the -O option like this >> wget -O /root/Desktop/test.txt "https://www.dropbox.com/s/mx9eqve5l2ipgyk/test.txt?dl=1"

And if you wanna have a little bit of gui you can use zenity to mark the location to where the file is going to be downloaded!

Here's an example code!

#!/bin/bash

dir=$(zenity --file-selection --directory)

wget -O $dir/test.txt "https://www.dropbox.com/s/mx9eqve5l2ipgyk/test.txt?dl=1"

I hope this could help you I just figure it out cuz I had the same problem while I was downloading a file especially a text based file and got corrupted *.tar files too.