Saturday, January 19, 2013

MacTricksAndTips Daily Email, Today: View and Delete Your Download History In Terminal & More

MacTricksAndTips Daily Email, Today: View and Delete Your Download History In Terminal & More

Link to Mac Tricks And Tips

View and Delete Your Download History In Terminal

Posted: 19 Jan 2013 08:47 AM PST

Hey,

When your download any file off the web your Mac runs it through a built in malware checker to ensure it doesn’t contain anything that may harm your system This is a good way of ensuring your Mac has a small amount of protection. However, your Mac records every single file you download, and the source. I believe this is a bit of a privacy risk. This post is going to show you how to access this list, and how to delete it.

Your Download History

Your download history is located in a database within the Quarantine Events file. Although it doesn’t usually contain the file name of the file you have downloaded, it does contain the source. To view it open Terminal located in your Applications > Utilities folder.

Copy and paste the following into Terminal.

sqlite3 ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV* 'select LSQuarantineDataURLString from LSQuarantineEvent'

When you hit return the sqlite3 command will run a sql database query on the file and it list the files your have download and the sources. It quite an interesting read as you do end up downloading more files than you realise.

Deleting Your Past

If you want to delete this history you have to perform a delete command. In Terminal again copy and paste the following.

sqlite3 ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV* 'delete from LSQuarantineEvent'

When you hit return the history will be deleted.

Conclusion

I don’t really like these types of activity being recorded and tracked, however the way to delete it is not too difficult. I believe this is only recored if you use Safari, however I have not checked if using a different browser makes any difference. If you have any comments on this command, please leave a one using the form below.

Want to catch up on the latest Tweets about this site, follow me on Twitter.

You have just read View and Delete Your Download History In Terminal,

On Mac Tricks And Tips - The site all about Mac Tips, Tricks, Tools, Guides and so much more.

No comments:

Post a Comment

Gimme your 2 cents!

Banner Ad