Hardware Reference
In-Depth Information
The pwd command
cat
When you are working with files, sometimes it's very handy to quickly view the
contents of a file. The cat command does exactly this. When you run the cat
command followed by a filename, it will display the contents of that file on the screen.
The cat command
cat has several options that you can use to customize the format of the file on the
screen. Some of the cat command's parameters are as follows:
Option
Description
-n
This shows line numbers in the file
-E
This adds $ at the end of every line so that you can see where it is
Remember that everything in Linux is a file. Using the cat command,
you can read in data from the device on your Raspberry Pi, including
its serial port and camera. By running cat /dev/video0 > video.
record , you can record the video coming in from your camera.
 
Search WWH ::




Custom Search