2

I have used wget to download several compressed packages(in a failed attempt to manually emulate apt-get, if that is of any significance), and I don't remember the packages' locations.
Is it possible to see the wget download history(I want to see it in order to erase all the downloads I've made)? Or maybe is there a more general operating system download history, including what has been downloaded by all network utilities and browsers?

I am running Linux. (Ubuntu 13.04 to be more specific, although this is probably irrelevant)

1
  • wget doesn't have that option, AFAIK, unless you specify a logfile, or if your shell has some sort of memory. Dec 21, 2013 at 18:36

2 Answers 2

6

No.

Your best chance is to check your .bash_history (or your shells equivalent)

If you know roughly what the files are named you can use locate to find them.

3

Or write a wrapper to log it,

$ sudo mv /usr/bin/wget /usr/bin/wget.orig
$ sudo touch /usr/bin/wget
$ sudo chmod +x /usr/bin/wget
$ sudo touch /var/log/wget.log
$ sudo chmod 666 /var/log/wget.log

then, edit /usr/bin/wget as below

#!/bin/bash

echo $@ >> /var/log/wget.log
/usr/bin/wget.orig $@
1
  • 1
    You can use a simpler and not a system-wide wrapper: alias wget='wget -a /var/log/wget.log'. Jan 10, 2017 at 12:50

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .