How to Clear Command line history in linux 16 October 2002 Shawn-Hyde Quick Tips (0) In some cases you may need to clear the command line history in Linux for security. Here is the command. history -cw