1

While using git bash terminal, I can't print a pdf file. In fact I can't print anything. I am using correct file name and I've tried typing:

lp file.pdf

but I get bash: lp: command not found

I get same promt when trying to print anything using lp command.

How do you print from git bash terminal?

Nifriz
  • 1,033
  • 1
  • 10
  • 21
Shawn Wright
  • 79
  • 1
  • 6

2 Answers2

3

Git bash is an emulated bash. The standard programs available on most Linux distributions are not available there.

LorenzBung
  • 404
  • 1
  • 5
  • 15
0

Windows programs are available. You can run them, but you'll have to make sure all the details are set up, and sometimes they don't like the environment.

For example, both notepad and wordpad (write) should be able to use the /p and/or /pt options, but you may have trouble getting it to find the file.

write tst

will open the file in wordpad, and

write /p tst

is supposed to print it, assumedly to the default printer, though my config seems admin-locked to something stupid.

Maybe that will help. Good luck.

Paul Hodges
  • 13,382
  • 1
  • 17
  • 36