DEV Community

Discussion on: What are the most used commands in your shell history?

Collapse
 
ferricoxide profile image
Thomas H Jones II • Edited

Depending on your distribution, the "only X number of lines of history are printed" is the default behavior. For bash and ksh, subbing fc -l 1 for history usually suffices.