Shared Flashcard Set

Details

Linux
Printing and Log Files
49
Computer Science
Professional
08/20/2007

Additional Computer Science Flashcards

 


 

Cards

Term
what is the process of accepting print jobs into the print queue?
Definition
spooling
Term
what is the process of transferring jobs from the print queue to the printer?
Definition
printing
Term
what is the traditional printing service for older Linux computers?
Definition
LPD (Line Printer Daemon)
Term
what LPD command sends a document to the print queue?
Definition
lpr
Term
what LPD command is used to view the status of printers?
Definition
lpc
Term
what LPD command is used to view print jobs in the print queue?
Definition
lpq
Term
what LPD command is used to remove print jobs?
Definition
lprm
Term
what LPD command and parameter displays the status of all printers on the system?
Definition
lpc status
Term
what LPD command prints two copies of /etc/inittab to printer1?
Definition
lpr -#2 -P printer1 /etc/inittab
Term
what LPD command views the print jobs in the queue?
Definition
lpq
Term
what LPD command removes the first print job?
Definition
lprm 1
Term
what daemon is the most common for printing systems?
Definition
CUPS daemon (cupsd)
Term
what is the command to send a print job to the printer?
Definition
lp
Term
what command and switch lists all the printers on the system and their status?
Definition
lpstat -t
Term
what command sends any further print jobs to the queue instead of printer1?
Definition
disable printer1
Term
what command and switch can be used to disable printer1 and send a message?
Definition
disable -r "printer down" printer1
Term
what command and switch sends /etc/inittab to printer1?
Definition
lp -d printer1 /etc/inittab
Term
what does the -d switch in lp -d signify?
Definition
-d switch is used to specify the printer name
Term
what command sends /etc/inittab to the default printer?
Definition
lp /etc/inittab (default printer)
Term
what command makes printer1 the default printer?
Definition
lpoptions -d printer1
Term
what is the file that stores information about the lpoptions command?
Definition
/etc/cupslpoptions file
Term
can each user specify their own default printer?
Definition
Yes, by adding the line default printername to .lpoptions file
Term
what command will print /etc/file1 and /etc/file2 to printer1?
Definition
lp -d printer1 /etc/file1 /etc/file2
Term
what command can redirect the output of the who command to printer1?
Definition
who | lp -d printer1
Term
what command will display all print jobs in the queue for printer1?
Definition
lpstat
Term
what command will remove print jobs p1-1 and p1-2?
Definition
cancel p1-1 p1-2
Term
what command will remove all print jobs from the queue?
Definition
cancel -a
Term
what switch is used with the cancel command to remove all print jobs from the queue?
Definition
-a
Term
what command removes all print jobs from the user ron?
Definition
cancel -u ron
Term
what command is used to restrict printer usage?
Definition
lpadmin
Term
what command will allow the root user and user1 to print to printer1 and deny printing to all others?
Definition
lpadmin -u allow:root,user1 -u deny:all -d printer1
Term
what is the file that contains the settings for cupsd?
Definition
/etc/cups/cupsd.conf file
Term
what is the file that contains the configuration information for each printer installed?
Definition
/etc/cups/printers.conf file
Term
how do you start the Printer Configuration Tool from the Fedora Core GUI?
Definition
click Systems Setting and choose Printing
Term
how do you start the GUI Printer Configuration Tool from the command line?
Definition
system-config-printer-gui
Term
how do you start the TUI Printer Configuration Tool from the command line?
Definition
system-config-printer-tui
Term
what is a log file?
Definition
A text file where daemons record information and error messages
Term
what is the default location for log files?
Definition
/var/log
Term
what is the default location for the samba log files?
Definition
/var/log/samba
Term
what daemon handles the logging of most events?
Definition
system log daemon (syslogd)
Term
Is syslogd automatically loaded on system startup?
Definition
Yes
Term
where does syslogd read information from?
Definition
/dev/log
Term
what configuration file tells syslogd what log files to write down the log information?
Definition
/etc/syslog.conf file
Term
what happens to log files if they are not maintained over a period of time?
Definition
They grow to large and must be trimmed
Term
Should you make a backup of log files prior to trimming them?
Definition
Yes, by printing or by making a backup copy
Term
Should you delete a log file or just clear it?
Definition
You should just clear it so you can save the rights and permissions given to that file
Term
what command can be used to clear the contents of /var/log/messages file?
Definition
>/var/log/messages
Term
what utility is used to rotate log files?
Definition
logrotate
Term
what name does logrotate utility assign to a log file called test.log?
Definition
test.log is renamed as test.log1
Supporting users have an ad free experience!