Finding any file anywhere
Posted: 04 Oct 2014, 15:19
To quickly find any file anywhere on your Linux system locate will do the job. I like to search for patterns and when I trace those spying Super cookies; finding extensions with *.sol will reveal them.
So this is what I did:
And sure enough it revealed all the places those rascals were hiding:
The standard flash player setting has a settings.sol so that is "normal" but sushi-cat-2.swf/Sushi-Cat-2.sol is put there by a flash game.
So I made myself an alias to remove all of them and checked again
- and they were gone.
Then I used flash again and those files and directories were generated again and filled with *.sol files...but this time
did not show them!
So can this command not be trusted to find any file on your system?
Yes it can! But it needs a database to make that quick search so when you change stuff on the fly like this - you need to update the database.
After that locate will find anything again....
...or you can use
(which is way slower than locate but more precise)
So this is what I did:
Code: Select all
locate "*.sol" And sure enough it revealed all the places those rascals were hiding:
Code: Select all
/home/viking/.config/chromium/Default/Pepper Data/Shockwave Flash/WritableRoot/#SharedObjects/869W26XX/macromedia.com/support/flashplayer/sys/settings.sol
/home/viking/.config/chromium/Default/Pepper Data/Shockwave Flash/WritableRoot/#SharedObjects/869W26XX/macromedia.com/support/flashplayer/sys/#www.flashgames247.com/settings.sol
/home/viking/.config/chromium/Default/Pepper Data/Shockwave Flash/WritableRoot/#SharedObjects/869W26XX/www.flashgames247.com/games/sushi-cat-2.swf/Sushi-Cat-2.sol
/home/viking/.tor-browser-en/INSTALL/.macromedia/Flash_Player/macromedia.com/support/flashplayer/sys/settings.sol
The standard flash player setting has a settings.sol so that is "normal" but sushi-cat-2.swf/Sushi-Cat-2.sol is put there by a flash game.
So I made myself an alias to remove all of them and checked again
Code: Select all
locate "*.sol"- and they were gone.
Then I used flash again and those files and directories were generated again and filled with *.sol files...but this time
Code: Select all
locate "*.sol" So can this command not be trusted to find any file on your system?
Yes it can! But it needs a database to make that quick search so when you change stuff on the fly like this - you need to update the database.
Code: Select all
su
updatedbAfter that locate will find anything again....
...or you can use
Code: Select all
find -name "*.sol"(which is way slower than locate but more precise)
file that I cannot find again so the type f is much used here: