Quantcast
Viewing latest article 3
Browse Latest Browse All 23

Answer by Thomas Jacob for How to delete history of last 10 commands in shell?

Not directly the requested answer, but maybe the root-cause of the question:

You can also prevent commands from even getting into the history, by prefixing them with a space character:

# This command will be in the historyecho Hello world# This will not echo Hello world

Viewing latest article 3
Browse Latest Browse All 23

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>