It is easy to list the printers you've already installed with this command: lpstat -a However, this does not list network printers you have NOT installed. nmap will scan for all open ports on the LAN, but the list produced won't be limited to network printers: sudo nmap -sT 192.168.0.1-254 Is there a command that does the following: 1. Detects the LAN you're currently connected to automatically. 2. Scans the entire LAN looking for Network Printers specifically. 3. Produces a list of Network Printers providing both their hostnames and IP addresses.