LP -c command

Hi,
lp -c command. can any one tell me please where it copy the file before printing and whether it delete that temp file after printing or not. thanks

Not sure, maybe /var/spool/cups/tmp?

What OS are you on?

lp -c does copy the file - /var/spool/[somewhere]. [Somewhere] depends on whether you are using cups, for example.

... and it does delete the temporary file afterwards.

It is very important to use the lp -c (copy) switch when printing temporary output.

# In this sequence the file is likely to be deleted before the spooler
# gets around to printing the file
lp filename
rm filename 

For future posts, please post what Operating System and version you have. The lp command is one of many commands which have considerable variation.