Quantcast
Channel: How to delete history of last 10 commands in shell? - Stack Overflow
Viewing all articles
Browse latest Browse all 23

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

$
0
0
#delete ten times the last history line    for i in $(seq 1 10)do  n=$(history 1 | awk '{print $1}')  history -d $ndone

Viewing all articles
Browse latest Browse all 23

Trending Articles



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