O'Reilly logo

Fundamentals of Linux by Oliver Pelz

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

Essential Linux commands

In this section, we will learn more essential Linux Bash commands that every Linux user should know. Use the cat command to quickly cut columns out of text files. This is like a light version of awk.

We'll be discussing the following commands:

  • cat
  • sort
  • awk
  • tee
  • tar 
  • Other miscellaneous commands

First, let's create a smaller version of the passwd file to work with the cat command:

-d sets the field delimiter; by default it's the tab character. -f uses a single field number or comma-separated list of field numbers that you want to extract. If using comma-separated lists also, the split input delimiter will be output, ...

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