Print a Web Page From a Shell Prompt

www.l‮c.iruttua‬om
Print a Web Page From a Shell Prompt

To print a web page from a shell prompt, you can use a command-line utility such as curl or wget to download the web page, and then use a command-line utility such as lpr or lp to print the page.

Here is an example of how to print a web page using curl and lpr:

  1. Use the curl command to download the web page and save it to a file. For example:
# curl https://www.example.com > page.html

This will download the web page from https://www.example.com and save it to a file named page.html.

  1. Use the lpr command to print the web page. For example:
# lpr page.html

This will send the page.html file to the default printer.

It's important to note that this is just one example of how to print a web page from a shell prompt. There are many other command-line utilities and options that you can use to download and print web pages. Consult the documentation and online resources for more information on how to use these utilities and options.

Created Time:2017-10-30 14:27:12  Author:lautturi