The Linux lp command lets you print from a terminal window. You can send print jobs manually or from within scripts, set page orientation and other preferences, and list your printer’s capabilities.
See UNIX Print File Parameters and Specifying Your Default Printer ... For example, if your print command is lp, you can set the default destination to the printer named myljet by entering the ...