I am new at Linux and in my school they asked me to give an example of this command

lpr -h


I already know that lpr its for printing and that the option -h disables banner printing.

What banner? As far as I am with Linux I only know to create banners from the banner command 

banner "hello world"


Not how to save it or print it. Is that kind of banner what this -h option refers to?

Could you give me an example?


Question: How do I attach a GPS receiver?
Answer: GPS Receiver

I would go for a generic usb GPS receiver such as the BU-353



It works with the Raspberry Pi, just like a normal linux computer. 

Most usb GPS receivers are just USB-to-Serial adapters that read the NMEA data from the GPS receiver. Look into pl2303 (many units i've seen use this particular chip) drivers, should be available. 

You can also use GPIO and a traditional NMEA 0183 GPS receiver, but then you need to worry about power, and the prices are often higher. GPS antannas are common onboard boats and ships, and usually consume 12v.

The usb solution is cheaper.

Software

The gps receiver I mentioned is compatible with gpsd.

sudo apt-get install gpsd gpsd-clients python-gps


This will install gpsd and related software. Check gps status with cgps -s.

NTP Clock

To synchronize the clock with NTP, you need to install ntp.

sudo apt-get install ntp


See this blog post: http://blog.retep.org/2012/06/18/getting-gps-to-work-on-a-raspberry-pi/. It covers ntp in detail.