lpr test.cThis will work for plain text or postscript files.
lpr -P ecs214 test.cThere is an environment variable, PRINTER, that you can use to set your default printer. For example, if you set PRINTER to ecs214, your printouts should go to the printer in room 214 by default, you could put something like the following in your .profile.
PRINTER=ecs214 export PRINTER