AppendixCool Tips and Tricks

ONE OF THE MOST AMAZING things about Linux is just how flexible the command line is. Over the years I’ve learned a lot of useful command-line tricks. Some are time-saving and others are life-saving. No matter how long you’ve used Linux, it seems as if you learn new tips like this all the time. In this section I have compiled some of my favorite short commandline tips and tricks.

Avoid That grep Command in grep Output

One of the main ways I use grep is when I am looking for a particular process on the system. The problem is that the grep command itself always seems to match and shows up in the output:

Image

As you can see ...

Get The Official Ubuntu Server Book, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.