Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Assume that i have downloaded a file in GNU/Linux using wget, the history in the terminal is cleared and i need to get back the URL from which i had downloaded the file. How do i go about? Something like a reserve lookup file==>URL.

share|improve this question

migrated from Oct 17 '09 at 8:31

This question came from our site for professional and enthusiast programmers.

You mean the (assuming bash) *.bash_history* file is cleared.

Then you are out of luck. You can't restore the url as wget doesn't have something like a history file or something like that (unless you used the -o or -a option yourself).

share|improve this answer
Yes .bash_history file is cleared. Let alone wget, is there any other app which can get the url given a file as an input. {I had come across once such but don't remember it as of now, indeed bad luck} Is there any way out like : file ==> (script) ==> URL – Oct 17 '09 at 9:48

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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