Compile gcc pstree.c statStuff.c pidTree.c pidTreePrint.c -o make-tree Run run the binary ./make-tree Or you can specify options ./make-tree --width=10 --depth=2