O'Reilly logo

The Official Ubuntu Server Book, Second Edition by Kyle Rankin, Benjamin Mako Hill

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required