Ubuntu – How to delete the command line history from the dash

historyprivacyunity-dash

When accessing the command line by pressing Alt+F2 it opens the dash and displays a history of previous commands which have been entered. How can this history be removed?

I've tried using Activity Log Manager but that only seems to be relevant to deleting the history of recent files rather than these commands.

enter image description here

Best Answer

You can clear Alt+F2 history in dconf editor.

Install dconf editor:

Hit Alt+Ctrl+T and run the following command:

sudo apt-get install dconf-tools

Or search for "dconf-tools" in Software Center and install it from there.

Clearing History:

Once installed, Hit super key (windows key) to open Unity dash and search for "dconf editor" and open it.

Navigate to Desktop > Unity > runner and click on "Set to default" in lower right corner. That's it!

enter image description here