How do I clear history in Linux?

Hương Trang

New member
How do I clear history in Linux?
Answer
Removing history
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. The history file is stored in a file that you can modify, as well.
 

Tìm kiếm

Back
Top