최신 102-500 무료덤프 - Lpi LPIC-1 Exam 102, Part 2 of 2, version 5.0
Which of the following configuration files should be modified to set default shell variables for all users?
정답: C
설명: (DumpTOP 회원만 볼 수 있음)
Which of the following commands lists all queued print jobs?
정답: A
설명: (DumpTOP 회원만 볼 수 있음)
What is true about the file /etc/localtime?
정답: C
설명: (DumpTOP 회원만 볼 수 있음)
On a dual boot system, every time the system is booted back into Linux the time has been set backward by one day. Which of the following commands will correct the problem?
정답: D
설명: (DumpTOP 회원만 볼 수 있음)
Where is the system journal stored?
정답: D
Which of the following commands display a list of jobs in the print queue? (Choose TWO correct answers.)
정답: A,D
After issuing:
function myfunction { echo $1 $2 ; }
in Bash, which output does:
myfunction A B C
Produce?
function myfunction { echo $1 $2 ; }
in Bash, which output does:
myfunction A B C
Produce?
정답: D
설명: (DumpTOP 회원만 볼 수 있음)
Which of the following comparison operators for test work on elements in the file system? (Choose two.)
정답: A,D
설명: (DumpTOP 회원만 볼 수 있음)
After configuring printing on a Linux server, the administrator sends a test file to one of the printers and it fails to print. What command can be used to display the status of the printer's queue? (Specify ONLY the command without any path or parameters.)
정답:
lpqusrbinlpqlpstatusrbinlpstat
Explanation:
The command lpq can be used to display the status of the printer's queue on a Linux server. The lpq command is part of the cups-bsd package, which provides the Berkeley commands for CUPS (Common UNIX Printing System), the standard printing system for Linux. The lpq command shows the status of a specified printer or the default printer if none is specified. It also lists the jobs that are queued for printing, along with their job IDs, owners, sizes, and names12. For example, to display the status of the printer lp1, we can use the following command:
$ lpq -P lp1
lp1 is ready
Rank Owner Job File(s) Total Size
active user1 123 test.txt 1024 bytes
1st user2 124 report.pdf 2048 bytes
The output shows that the printer lp1 is ready, and that there are two jobs in the queue, one of which is active and the other is waiting. The output also shows the owners, job IDs, file names, and sizes of the jobs. To display the status of all printers, we can use the -a option:
$ lpq -a
lp1 is ready
Rank Owner Job File(s) Total Size
active user1 123 test.txt 1024 bytes
1st user2 124 report.pdf 2048 bytes
lp2 is ready
no entries
The output shows that there are two printers, lp1 and lp2, and that lp2 has no entries in the queue. To display more information about the jobs, such as the priority, submission time, and status, we can use the -l option:
$ lpq -l -P lp1
lp1 is ready
Rank Owner Job File(s) Total Size
active user1 123 test.txt 1024 bytes
priority 50 Apr 27 10:00 processing since Apr 27 10:01
1st user2 124 report.pdf 2048 bytes
priority 50 Apr 27 10:05 waiting for lp1
The output shows that the jobs have the same priority, and that the first job is processing while the second job is waiting. The lpq command can be useful for troubleshooting printing problems, such as checking if the printer is ready, if there are any stuck or failed jobs, or if there are any conflicts or delays in the queue34. Reference: 1: lpq(1) - Linux manual page 2: How to Use the lp Command in Linux to Print Files From Terminal - Make Tech Easier 3: Linux sysadmin printing reference guide - PenguinTutor 4: How to manage print jobs on Linux - Network World
Explanation:
The command lpq can be used to display the status of the printer's queue on a Linux server. The lpq command is part of the cups-bsd package, which provides the Berkeley commands for CUPS (Common UNIX Printing System), the standard printing system for Linux. The lpq command shows the status of a specified printer or the default printer if none is specified. It also lists the jobs that are queued for printing, along with their job IDs, owners, sizes, and names12. For example, to display the status of the printer lp1, we can use the following command:
$ lpq -P lp1
lp1 is ready
Rank Owner Job File(s) Total Size
active user1 123 test.txt 1024 bytes
1st user2 124 report.pdf 2048 bytes
The output shows that the printer lp1 is ready, and that there are two jobs in the queue, one of which is active and the other is waiting. The output also shows the owners, job IDs, file names, and sizes of the jobs. To display the status of all printers, we can use the -a option:
$ lpq -a
lp1 is ready
Rank Owner Job File(s) Total Size
active user1 123 test.txt 1024 bytes
1st user2 124 report.pdf 2048 bytes
lp2 is ready
no entries
The output shows that there are two printers, lp1 and lp2, and that lp2 has no entries in the queue. To display more information about the jobs, such as the priority, submission time, and status, we can use the -l option:
$ lpq -l -P lp1
lp1 is ready
Rank Owner Job File(s) Total Size
active user1 123 test.txt 1024 bytes
priority 50 Apr 27 10:00 processing since Apr 27 10:01
1st user2 124 report.pdf 2048 bytes
priority 50 Apr 27 10:05 waiting for lp1
The output shows that the jobs have the same priority, and that the first job is processing while the second job is waiting. The lpq command can be useful for troubleshooting printing problems, such as checking if the printer is ready, if there are any stuck or failed jobs, or if there are any conflicts or delays in the queue34. Reference: 1: lpq(1) - Linux manual page 2: How to Use the lp Command in Linux to Print Files From Terminal - Make Tech Easier 3: Linux sysadmin printing reference guide - PenguinTutor 4: How to manage print jobs on Linux - Network World
When the command echo $ outputs 1, which of the following statements is true?
정답: B
설명: (DumpTOP 회원만 볼 수 있음)
What is the purpose of a screen reader?
정답: D
설명: (DumpTOP 회원만 볼 수 있음)
What is pool.ntp.org?
정답: D
설명: (DumpTOP 회원만 볼 수 있음)
How do shadow passwords improve the password security in comparison to standard non-shadow passwords?
정답: B
Given the following excerpt of the sudo configuration:
jane ANY=NOPASSWD: /bin/kill, /bin/id, PASSWD: /sbin/fdisk
Which of the following statements are true? (Choose three.)
jane ANY=NOPASSWD: /bin/kill, /bin/id, PASSWD: /sbin/fdisk
Which of the following statements are true? (Choose three.)
정답: A,C,D
설명: (DumpTOP 회원만 볼 수 있음)
To prevent a specific user from scheduling tasks with at, what should the administrator do?
정답: A
설명: (DumpTOP 회원만 볼 수 있음)
Which of the following features are provided by SPICE? (Choose two.)
정답: A,B
설명: (DumpTOP 회원만 볼 수 있음)
What keyword is missing from this code sample of a shell script?
____ i in *.txt; do
echo $i
done
____ i in *.txt; do
echo $i
done
정답: B
설명: (DumpTOP 회원만 볼 수 있음)