Display Your Mac’s Download History With A Terminal Command


Your Mac logs just about everything you download. If you’ve lost a file, or you just want to see how much you’ve downloaded, iDownloadBlog shares a simple Terminal command that reveals everything you’ve put into your Downloads folder.

All it takes is a Terminal (Applications > Utilities) command:

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

Once you load that up, Terminal should give you a (potentially very large) list of everything you’ve downloaded. If that makes you a little uncomfortable, you can easily delete everything in the database as well by typing this into Terminal:

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

Once that command is run, your download history should disappear forever.

How to extract OS X download history via Terminal [iDownloadBlog]


The Cheapest NBN 50 Plans

Here are the cheapest plans available for Australia’s most popular NBN speed tier.

At Lifehacker, we independently select and write about stuff we love and think you'll like too. We have affiliate and advertising partnerships, which means we may collect a share of sales or other compensation from the links on this page. BTW – prices are accurate and items in stock at the time of posting.

Comments


Leave a Reply