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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.