4

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

5

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

0

1.How to delete history without any trace

history -d $((HISTCMD-1)) && history -d NO_of_History_you_want_to_delete

2.if you want to excute a command without leaving any trace.

history -d $((HISTCMD-1)) && type_your_command_here_and_execute

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.