LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-18-2010, 02:34 AM   #1
Siljrath
Bedrock Linux Advocate
 
Registered: Nov 2004
Location: the internet
Distribution: server:Gentoo | workstation:Bedrock (hijacked:void, fetched:Gentoo,Devuan,Artix)
Posts: 226

Rep: Reputation: 66
Question simple alternative to BetterPrivacy firefox addon?


can someone please confirm i've got this right, and it's not going to hose my entire system...


"sudo rm -r / *.sol"


that should get rid of all flash cookies from the system, right?
(including any that might have somehow decided to hide outside .macromedia directory)


or perhaps there's a better way... perhaps piping a find or locate result to rm, or even a script, that could ask for confirmation before deletion, incase you have other files with .sol extension that arent flash cookies....

any ideas?
 
Old 12-18-2010, 07:57 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by Siljrath View Post
can someone please confirm i've got this right, and it's not going to hose my entire system...
You have a space between "/" and "*.sol" so this will do a recursive remove in "/" and next to that remove any files that match "*.sol".
Best get used to using "echo" statements to see what a command does when unsure.
Also, since you use "/", are you browsing the 'net as root user? If you definitely should not.


Quote:
Originally Posted by Siljrath View Post
that should get rid of all flash cookies from the system, right?
(including any that might have somehow decided to hide outside .macromedia directory)
AFAIK none should reside outside your ~/.macromedia directory.


Code:
find /home -maxdepth 2 -type d -name .macromedia | while read SOLDIR; do
 echo "Removing .sol files in "${SOLDIR}""
 find "${SOLDIR}" -type f -iname \*.sol -print0 | xargs -0 -iS rm 'S'
done
or shorter:
Code:
find /home -maxdepth 10 -type f -iname \*.sol -exec rm {} \;
or if ran solely from inside your own unprivileged user account:
Code:
find ${HOME} -maxdepth 2 -type d -name .macromedia | while read SOLDIR; do
 echo "Removing .sol files in "${SOLDIR}""
 find "${SOLDIR}" -type f -iname \*.sol -print0 | xargs -0 -iS rm 'S'
done
or shorter:
Code:
find ${HOME} -maxdepth 10 -type f -iname \*.sol -exec rm {} \;
also see tools like 'bleachbit'.

Last edited by unSpawn; 12-18-2010 at 07:58 AM. Reason: //more *is* more.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Anyone Using ghostery-2.x Addon for Firefox? HaroldWho Linux - Software 4 01-17-2010 04:59 AM
firefox adobe flash addon cereal.therapist Slackware 7 09-16-2009 07:32 PM
LXer: [Video] Firefox Addon: It's All Text LXer Syndicated Linux News 0 06-13-2009 06:20 AM
Firefox disables an addon J_Szucs Linux - Software 2 08-24-2008 05:20 PM
firefox google toolbar like addon bong.mau General 5 06-22-2006 09:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration