Firefox is already running – linux .parentlock problem

While using a Ubuntu linux machine, this can happen for a lot of people. This is the solution.

Error Message: "Firefox is already running but is not responding ..."

The problem:

Many packages (like firefox) create lock files in your account to prevent database corruption with multiple copies of the application. Look in your account HOME for recent lock files and remove them if you're not logged in to other machines.

The solution is easy:

1. find the .parentlock file under user's directory
find -name "*.parentlock"

2. delete those files.

3. possible problems - the bookmark and history does not work properly. What I did is deleting the entire firefox directory where .parentlock file resides. Of course, I lost my history and bookmark. But that's OK, they are not important for me.

Category >> Linux  
If you want someone to read your code, please put the code inside <pre><code> and </code></pre> tags. For example:
String foo = "bar";