O'Reilly logo

CompTIA® Linux+ Certification, Powered by LPI, Student Manual by Axzo Press

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

1120 CompTIA Linux+ Certification, Powered by LPI
Unit summary: File sharing and printing
Topic A In this topic, you learned that NFS, the Network File System, enables you to share and
access file systems across the network. You installed the NFS daemons, configured
NFS, then exported a file system. Next, you mounted and used a remote file system.
You also managed NFS exports using commands such as
showmount and exportfs.
Topic B In this topic, you learned that Linux enables printing through the LPR/LPD system,
application-specific printing systems, and CUPS, the Common Unix Printing
System. You configured CUPS, created a printer, and then managed the print queue,
print jobs, and the printer itself.
Review questions
1 True or false? NFS is a Linux-specific file sharing technology.
False. It was developed for UNIX and is available for many operating systems, including
Windows.
2 NFS is available in two packages, the kernel and user-space versions. Which should
you use and why?
Use the kernel version for greater stability, faster operations, and more features.
3 What file do edit to permit a specific host to mount an exported file system?
/etc/hosts.allow
4 In the /etc/exports file, you find an entry that includes 192.168.1.0/255.255.255.0 as
the computer entry. What hosts are permitted to mount the file system?
Any on the 192.168.1.0 subnet.
5 In the /etc/exports file, you find an entry that includes gss/krb5i as the computer
entry. What hosts are permitted to mount the file system?
Any clients running rpcsec_gss security.
6 In the /etc/exports directory, which option do you use to export a file system
securely, so that users could not change the files within?
A
rw
B
async
C
secure
D
ro
7 What command do you use to view current connections to your exported file
systems?
Use the showmount command.
8 What is a queue?
A queue is a holding place for jobs waiting to be printed.
9 Sending a job to the queue is called ___________.
spooling
File sharing and printing 1121
10 In the LPD/LPR printing environment, what command do you use to send a print
job to the printer?
Use the lpr command.
11 True or false? The selection of printers compatible with CUPS is less than that for
Windows.
True
12 What URL do you use to connect to the CUPS system over the Web interface?
http://localhost:631/ or http://127.0.0.1:631/
13 What file do you edit to create or configure CUPS printers?
/etc/cups/printers.conf
14 Which of the following commands do you use to view the jobs you have sent to any
printers on the local system?
A
lpadmin
B
lpq
C
lpstat MyPrinter
D
queuemon
15 To restrict who can print to a printer, you use the ___________ command.
lpadmin
16 Which of the following commands do you use to override the system default printer
for your user account?
A
lpoptions -d MyPrinter
B
lpadmin -d MyPrinter
C
lpdefault -p MyPrinter
D
lpstat -default MyPrinter
Independent practice activity
1 Define an HP LaserJet 5 printer on your system. You may configure the output to be
sent to the dummy output device.
2 Use the lpadmin command to set your printer as the system default.
3 Use OpenOffice Calc to create a spreadsheet. Enter numbers in at least a couple
rows and columns. Print the spreadsheet to your new printer. Close Calc without
saving your file.
4 View the jobs in your queue.
5 Use the cancel command to cancel your print job.
6 View the jobs in your queue.
7 Delete your printer.
1122 CompTIA Linux+ Certification, Powered by LPI

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required