Linux + C – Pipes and Filters

We've seen how to pass arguments to programs, and we've seen how to write to files. Now we'll look at how that is done from the Terminal. Pipes A pipe redirects the standard output (stdout) from one program to the standard input (stdin) of another. It acts like a tunnel (or pipe) between two programs, which

Linux + C – Programs You Will Use

There are a few programs in Linux which every programmer MUST use at one point or another. Most of these are every-day tools, without which we cannot survive. Moving Files There are three basic functions we use to move files around in the Linux terminal. They are, in no particular order: cp source_location destination_location - Copy a

Linux + C – Make

Compiling your program is easy when you're working with one source and the standard libraries, but it gets more complex as you go along. That's why God put make on this earth. The First Makefile ...was created alongside the Earth. Every other makefile is derived from a previous one. Jokes aside, the make program reads a makefile

Linux + C – Concepts of Debugging

It's almost time to talk about that most important aspect of programming - testing. However, before we start talking about the tools, we need to look at some basic concepts of debugging. Bugs A bug is anything that doesn't work exactly as expected. Bugs can be fatal - they can crash your machine - or bugs