Unix for Mac OS Users: How to Read Files in Unix


show more Reading files provides you with in-depth training on IT. Taught by Kevin Skoglund as part of the Unix for Mac OS X Users show less
please wait ...

Reading files

Now we will learn how to read the contents of a file. Now you may be thinking, why not to use Nano to open and read the contents of a file? Well, you certainly can. In fact I do it all the time. But what we are interested in here are tools which are designed just for reading files. This difference will become important later because we'll learn that to read a file really just means to output the text to your screen and we'll learn to direct that output that places besides our screen and even to other commands. A tool like nano which depends on user interaction would do too much for us and it would get in the way.

Now, we have a couple of options for reading files. The first is cat. cat is the simplest and the one that you would use most often. It has kind of a funny name, because cat is short for concatenate. You see, cat doesn't just read a file. It will concatenate or join several files together. You can think of it as read and output the first file, then immediately read ...

Reading files
Video duration: 5m 35s 6h 35m Beginner

Viewers:

Reading files provides you with in-depth training on IT. Taught by Kevin Skoglund as part of the Unix for Mac OS X Users

Subject:
IT
Software:
Mac OS X Unix
Author:
please wait ...