I have collected few linux one liners for linux/unix shell script. The majority should work on bash, but some may work with other shells as well. Out of necessity in different situations, I have found some of the one liners. Others are collected from the net which I found interesting. Most of the one liners presented here are the simpler ones so that they are self-explanatory. For a comprehensive collection of linux one liners you can visit .