Control Monitor Brightness through the Terminal
This feature is particularly useful in combination with a portable SSH capable device, such as an iPod.
Copy this code and paste it into TextEdit and save it as brightness.c. If you paste this into vim and use a standward terminal width of 80, be prepared for a wrapping issue on line 56.
#include <stdio.h>
#include <unistd.h>
#include <IOKit/graphics/IOGraphicsLib.h>
#include [...]
Time a Compilation in Linux
Time is a part of the bash shell and is a very useful program. With it you can easily determine the time it takes your machine to complete any shell task. The syntax depends on the bash command.
for a simple command like cd, the syntax is:
time cd
for a series of commands separated by &&, the [...]