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.