clear command - terminals database is inaccessible

Solution 1:

Path for Anaconda3 is set in .bashrc. It is interfering with the clear command. Removing Anaconda path from path solved the issue.

Here is the GitHub reference for the issue: https://github.com/ContinuumIO/anaconda-issues/issues/331

Solution 2:

You might have moved the anaconda directory after installation and some bash script links in some files from anaconda directory are still pointing to the previous location. Simplest solution is to delete your current anaconda installation directory, remove any paths in .bashrc pointing to it and reinstall it in the desired location.

Solution 3:

This is an issue you'll face after moving the Anaconda Python directory to a different location. In your $PATH variable, you will your Python home's bin directory ($PYTHON_HOME/bin). Just go this bin directory, rename the existing "clear" binary file and login again.

cd $PYTHON_HOME/bin
mv clear clear.bkup