02Confirm the document is in the directory

Use the "ls" command to list all the files in the current directory. Make sure the document you want to print is listed.

$ ls

04Check your printer

Your printer should now start printing the document. If it doesn't, ensure that it's properly connected, powered on, and loaded with paper and ink or toner.

Additional information: List of printers

If you don't know the name of your printer, you can use the "lpstat -p -d" command to list all available printers:

$ lpstat -p -d

This command will output a list of printers installed on your system and their status. The default printer will also be indicated.

Considerations

Remember, you might need appropriate permissions to print documents from the terminal, and the printer must be correctly set up on your macOS.

Congratulations! You've just printed your first document directly from your Terminal. You're no longer dependent on the GUI print dialog box for printing tasks. You're streamlining your tasks with the efficiency of terminal commands.