您(Did)是否知道每次在Mac上下载内容时,它都会将其记录在一个方便的日志文件中?是的……谢谢你的苹果(Apple)。我可以听到非法下载(illegal downloading)的人群在疯狂地擦洗硬盘时惊慌失措。
好消息是(have)您不必擦洗硬盘。您只需要擦除日志文件并记住继续这样做。停止非法下载也是一个很好的下一步,但这取决于您。
那么这个邪恶的文件在哪里?(So Where Is
This Nefarious File?)
您现在可能会问自己这个文件在哪里,以及为什么Apple将它放在首位。它可能是出于故障排除目的而生成的,以防您下载了不应该下载的内容(只是猜测),但无法关闭日志记录功能。你被它困住了。
相反,您所能做的就是删除日志文件并记下每周左右删除一次。
要查看文件,请打开终端(Terminal)窗口并键入:
sqlite3
~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV* 'select
LSQuarantineDataURLString from LSQuarantineEvent'
然后,这将为您提供自上次擦除以来所有荣耀的下载日志。如果您以前从未查看过它,它会在您拿到计算机时立即回到第一天。
就我而言,日志几乎可以追溯到一整年。
在某些方面,回顾一下您去年下载的内容可能会很有趣。但是,如果好奇的配偶/室友/唱片公司查看并发现您没有下载无辜的圣经段落,那可能会让您陷入尴尬的境地。
值得庆幸的是,您可以立即核对列表,并且只涉及一个命令。类型 :
sqlite3
~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV* 'delete from
LSQuarantineEvent'
这将删除批次。您可以通过再次运行第一个命令来确认它已经全部消失,并且列表应该是空的。
How To Delete The Hidden Download Log On Your Mac OS X Computer
Did you know that every time you download something on your Mac, it recordѕ it in а handy log file? Υeah….thanks for that Apple. I can hеar the illegal downloading crowd crying out in a panic as they frantically scrub their hard drives.
The good news is that you don’t have to scrub your hard drive. You just have to wipe the log file and remember to keep doing it. Stopping illegal downloads would also be a good next step but that is up to you.
So Where Is
This Nefarious File?
You will probably now be asking yourself where this file is and why Apple keeps it in the first place. It is probably generated for troubleshooting purposes in case you download something you shouldn’t have (just a guess) but there is no way to switch the logging function off. You’re stuck with it.
Instead, all you can do is delete the log file and make a
mental note to keep deleting it once a week or so.
To view the file, open a Terminal window and type :
sqlite3
~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV* 'select
LSQuarantineDataURLString from LSQuarantineEvent'
This will then give you your download log in all of its glory
since the last time you wiped it. If you have never viewed it before, it will
go right back to day one when you got the computer.
In my case, the log went back almost an entire year.
In some ways, it can be fascinating to take a glimpse back
and see what you were downloading last year. But if an inquisitive
spouse/flatmate/record company were to look and discover you weren’t downloading
innocent Bible passages, that could put you in an awkward spot.
Thankfully you can nuke the list right away and it only
involves one command. Type :
sqlite3
~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV* 'delete from
LSQuarantineEvent'
This deletes the lot. You can confirm it’s all gone by
running the first command again and the list should come up empty.