O'Reilly logo

Getting Started with Cubieboard by Olliver M. Schinagl

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

Displaying the content of a text file

There are many tools to output the content of a file; less, more, or cat, to name just a few. They all work similarly, pass a filename as their parameter, and they will start displaying the content. Both less and more allow search or scrolling through the file, with less being more advanced than more. The cat utility, which stands for concatenate, will just output whatever it finds in the file, be it text or not, as shown here:

packt@PacktPublishing:~$ cat /tmp/testfile

One common operation used with cat is redirecting the output content of a file to somewhere else, be it a new file where its functions mimic the copying of a file or appending to another file.

There are a few programs that function in a manner ...

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