how to clear current history from the unix command code example Example: delete history linux range $ for line in $(seq 1800 1816) ; do history -d 1800; done