Jul 01
Remove Safari history files on logout via shell script
Cats: News|
If you'd like to remove your Safari history files when you log out, first create the following shell script:Save the script somewhere, make it executable, and because it runs as root, make sure it is protected from modification. Then copy and paste this command into Terminal, modifying it to point to wherever you put the above script:
sudo defaults w...
#!/bin/bash# Point this at your user folder.useroot=/Users/your_user# Clear Safari History (except for bookmarks).rm -f $useroot/Library/Safari/Downloads.plist $useroot/Library/Safari/History.plist rm -f $useroot/Library/Safari/HistoryIndex.sk $useroot/Library/Safari/TopSites.plist rm -f $useroot/Library/Safari/WebpageIcons.db $useroot/Library/Safari/LastSession.plist# Add any additional clean-up here.sudo defaults w...
Leave a Reply
You must be logged in to post a comment.
Subscribe
