Linux Test 4 10,11 Flashcards

(62 cards)

1
Q

If you want to enable a printer, you must specify the printer name to the cupsenable command.

A

t

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

CUPS contains versions of the lpr, lpc, lpq, and lprm commands

A

t

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Most printers are Plug and Play compatible and must be manually configured when they are plugged into the system

A

f

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

On most Linux systems, the logrotate utility is automatically scheduled to run weekly.

A

f

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

A user can only be a member of one group

A

f

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Sending print jobs from a print queue to a printer is commonly called printing.

A

t

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

In the CUPS printing system, the lpr command is used to print documents to the print queue

A

f

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

The file that contains the configuration information for each printer installed on the system is /etc/cups/cupsd.conf.

A

f

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

To clear a log file, you can use a(n) < redirection symbol.

A

f

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

The /etc/login.defs file contains parameters that set the default location for e-mail, password expiration information, minimum password length, range of UIDs and GIDs available for use.

A

t

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

To send a print job to a printer, you must first use the ____ command and specify what to print

A

lp

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

To see a list of all printers on the system and their status, you can use the -t option to the ____ command.

A

lpstat

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

The lp command uses the ____ option to specify the destination printer name.

A

-d

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

By default, all print jobs have a priority of ____.

A

50

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

The ____ option to the lpstat command causes a list of printers that are enabled to be displayed.

A

-p

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

You can restrict who can print to certain printers by using the ____ command.

A

lpadmin

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Log files are typically stored in the ____ directory.

A

/var/log

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

The ____ log file contains information and error messages regarding network access generated by daemons such as sshd and xinetd.

A

secure

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Any line that starts with a(n) ____ character is a comment in the /etc/rsyslog.conf file.

A

#

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

The ____ priority used by the System Log Daemon indicates an error that should be rectified immediately, such as a corrupt system database

A

alert

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

To convert a system so that it uses an /etc/shadow file to store the encrypted password after installation, you can run the ____ command

A

pwconv

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

You can create user accounts on the Linux system by using the ____ command.

A

useradd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

The skeleton directory on most Linux systems is ____.

A

/etc/skel

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

To lock an account, you can use the usermod command with the ____ option.

A

-L

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
You can specify the ____ option to the userdel command to remove the home directory for the user and all of its contents.
-r
26
To change the primary group temporarily to another group that is listed in the output of the groups and id commands, you can use the ____ command.
newgrp
27
Can each user on a Linux system specify his or her own default printer?
yes
28
Can the lp command accept information from Standard Input?
yes
29
Did older Linux systems store encrypted passwords in the /etc/shadow file?
no
30
Can a user account be used to log in to the system before its password is set?
no
31
Can the usermod command be used to modify the password expiration information stored in /etc/shadow?
no
32
The compress utility preserves the original ownership, modification, and access time for each file that it compresses.
t
33
When using the gzip utility, the -1 option is also known as best compression and results in a higher compression ratio.
f
34
When creating a system backup, temporary files in the /tmp and /var/tmp directories should be included.
f
35
The tar utility cannot back up device files or files with filenames longer than 255 characters.
t
36
It is good form to read the Makefile after you run the configure script.
t
37
If a compression utility compresses a file to 52% of its original size, it has a compression ratio of 52%.
f
38
To decompress files that have been compressed with the compress utility, you can use the decompress command followed by the names of the files to be decompressed.
f
39
Traditionally, CDs/DVDs were used to back up data.
f
40
Because its primary use is to back up files in case of system failure, cpio uses absolute pathnames by default when archiving.
t
41
The dump/restore utility can only work with files on ext2 and ext3 filesystems.
t
42
The compression algorithm used by the compress utility has an average compression ratio of ____%.
40-50
43
When using the compress utility, each file is renamed with a(n) ____ filename extension to indicate that it is compressed.
.Z
44
The ____ command can be used to display the contents of a compressed file.
zcat
45
The average compression ratio for gzip is ____%.
60-70
46
When used with the compress command, the ____ option can be used to compress symbolic links.
-f
47
When used with the uncompress command, the ____ option displays the contents of the compressed file to Standard Output.
-c
48
If no level of compression is specified, the gzip command assumes the number ____.
6
49
The ____ option, when used with the gzip command, causes the compression ratio for files that have been compressed to be listed.
-l
50
The filename extension given to files compressed with bzip2 is ____.
.bz2
51
When used with the tar utility, the ____ option causes filenames to be stored in an archive using absolute pathnames.
-P, but shows -p on test
52
The ____ option can be used with the tar command to extract a specified archive.
-x
53
When using the cpio utility, the ____ option causes a new archive to be created.
-o
54
You can perform up to ____ different incremental backups using the dump/restore utility.
nine
55
Most Linux distributions today use ____ as their package manager.
RPM
56
The ____ command looks for a Makefile and uses the information within to compile the source code into binary programs using the appropriate compiler program for the local hardware architecture.
make
57
To remove a package from the system, you can use the ____ option to the rpm command.
-e
58
Can the contents of a compressed file be viewed page-by-page?
yes
59
Can symbolic links be compressed by the gzip utility?
yes
60
Can the bzip2 utility be used to compress a directory full of files?
no
61
Does the tar utility compress files inside an archive?
no
62
Can you write files to CD and DVD media using the tar, cpio, or dump utilities?
no