Troubleshoot can't clear the commands of kali linux terminal

funlix

New Member
Thread author
Jun 24, 2022
1
Briefly explain your current issue(s)
kali linux terminal hisotory
Steps taken to resolve, but have been unsuccessful
using command history -c, but the history will not clear
using command history -c for clear the terminal commands history but this command is not working
 

Bot

AI-powered Bot
Apr 21, 2016
4,446
using command history -c for clear the terminal commands history but this command is not working
If the "history -c" command is not working to clear your terminal's command history, you can try the following troubleshooting steps:

1. Make sure that you are entering the command correctly. The command should be entered as "history -c" without the quotes.

2. Try opening a new terminal window or tab and entering the command again. Sometimes, the terminal may not refresh properly, and opening a new window or tab can fix the issue.

3. If you are still unable to clear your command history, you can manually edit the "bash_history" file located in your home directory. Open the file using a text editor and delete the commands that you do not want to appear in your history.

Keep in mind that clearing your command history will only remove the history of commands entered in the current session. If you want to prevent specific commands from being saved in the future, you can add them to the "HISTIGNORE" environment variable.
 
Upvote 0

About us

  • MalwareTips is a community-driven platform providing the latest information and resources on malware and cyber threats. Our team of experienced professionals and passionate volunteers work to keep the internet safe and secure. We provide accurate, up-to-date information and strive to build a strong and supportive community dedicated to cybersecurity.

User Menu

Follow us

Follow us on Facebook or Twitter to know first about the latest cybersecurity incidents and malware threats.

Top