How do I clear all commands in Linux?

Giang Phạm

New member
How do I clear all commands in Linux?
Answer
There may come a time that you want to remove some or all the commands in your history file. If you want to delete a particular command, enter history -d <line number> . To clear the entire contents of the history file, execute history -c .
 

Tìm kiếm

Back
Top