There are a few different commands that can be used to sent print jobs to the printer.
The lpr command can be used to print a file. In this example, the foo.txt file will be printed to the default printer the /etc/cups/cupsd.conf file.
If you have more than one printer or more than one print queue, the lpr -P command can be used to specify a printer or queue.
lpr -P HP-Laserjet-4000 foo.txt
man lpr info lpr