ExamGecko
Home Home / LPI / 702-100

LPI 702-100 Practice Test - Questions Answers, Page 2

Question list
Search
Search

Question 11

Report
Export
Collapse

Which command sends the contents of the file myconfigfile by email to me@mycompany. com?

A.
cat myconfigfile I mail [email protected]
A.
cat myconfigfile I mail [email protected]
Answers
B.
cat myconfigfile > [email protected]
B.
cat myconfigfile > [email protected]
Answers
C.
mail [email protected] I cat myconfigfile
C.
mail [email protected] I cat myconfigfile
Answers
D.
mail [email protected] > cat myconfigfile
D.
mail [email protected] > cat myconfigfile
Answers
E.
mail myconfigfile -r [email protected]
E.
mail myconfigfile -r [email protected]
Answers
Suggested answer: A
asked 18/09/2024
Mário Afonso
23 questions

Question 12

Report
Export
Collapse

While in the csh or tcsh shell, which command changes the timezone environment variable to GMT?

A.
export TZ=GMT
A.
export TZ=GMT
Answers
B.
setenv TZ GMT
B.
setenv TZ GMT
Answers
C.
env TZ=GMT
C.
env TZ=GMT
Answers
D.
TZ=GMT; export TZ
D.
TZ=GMT; export TZ
Answers
E.
environ TZ GMT
E.
environ TZ GMT
Answers
Suggested answer: B
asked 18/09/2024
Mohammed Hamid
46 questions

Question 13

Report
Export
Collapse

While using vi as superuser. the attempt to save a file while quitting the editor leads to an error indicating that the file is read-only. How can the file permissions be overridden to save the edits to the file and quit the editor?

A.
: fw!
A.
: fw!
Answers
B.
: fwq
B.
: fwq
Answers
C.
: ql
C.
: ql
Answers
D.
: wq
D.
: wq
Answers
E.
: wq!
E.
: wq!
Answers
Suggested answer: E
asked 18/09/2024
Roman Roman
35 questions

Question 14

Report
Export
Collapse

Which command shows all processes owned by the user bob?

A.
who -1 bob
A.
who -1 bob
Answers
B.
pgrep -u bob
B.
pgrep -u bob
Answers
C.
ps -o -a bob
C.
ps -o -a bob
Answers
D.
top bob
D.
top bob
Answers
E.
last -p bob
E.
last -p bob
Answers
Suggested answer: B
asked 18/09/2024
Rehan Malik
51 questions

Question 15

Report
Export
Collapse

On BSD systems that provide an interactive adduser script, which configuration file stores the default adduser settings?

A.
adduser.conf
A.
adduser.conf
Answers
B.
login, conf
B.
login, conf
Answers
C.
pw.conf
C.
pw.conf
Answers
D.
user.conf
D.
user.conf
Answers
E.
usermgmt. conf
E.
usermgmt. conf
Answers
Suggested answer: A
asked 18/09/2024
deborah lockett
29 questions

Question 16

Report
Export
Collapse

Which command locks the user account bob on a FreeBSD system?

A.
audit_user -1 bob
A.
audit_user -1 bob
Answers
B.
lockuser bob
B.
lockuser bob
Answers
C.
pw lock bob
C.
pw lock bob
Answers
D.
usermod lock bob
D.
usermod lock bob
Answers
E.
vipw lock bob
E.
vipw lock bob
Answers
Suggested answer: B
asked 18/09/2024
Ana Santos
40 questions

Question 17

Report
Export
Collapse

Which file on a BSD system defines the printers which are available by the Ipr printing system'? (Specify the full name of the file including path)

A.
See in Explanation
A.
See in Explanation
Answers
Suggested answer: A

Explanation:

asked 18/09/2024
Donald Geddis
45 questions

Question 18

Report
Export
Collapse

Which line in a cron job runs myscript once per hour?

A.
***** /pathto/myscript
A.
***** /pathto/myscript
Answers
B.
0 * * * * /pathto/myscript
B.
0 * * * * /pathto/myscript
Answers
C.
* 0 * * * /pathto/myscript
C.
* 0 * * * /pathto/myscript
Answers
D.
* * o * * /pathto/myscript
D.
* * o * * /pathto/myscript
Answers
E.
* * * o * /pathto/myscript
E.
* * * o * /pathto/myscript
Answers
Suggested answer: B
asked 18/09/2024
samer salami
34 questions

Question 19

Report
Export
Collapse

Which of the following lines stems from the output of last?

A.
3:26PM up 1:58, 2 users, load averages: 0.49, 0.43, 0.40
A.
3:26PM up 1:58, 2 users, load averages: 0.49, 0.43, 0.40
Answers
B.
May 11 19:34:24 fbsd login [793]: login on ttyv0 as root
B.
May 11 19:34:24 fbsd login [793]: login on ttyv0 as root
Answers
C.
root ttyv0 Sat May 18 13:35 still logged in
C.
root ttyv0 Sat May 18 13:35 still logged in
Answers
D.
763 v1 Is+ 0:00-00 /usr/libexec/getty Pc ttyv1
D.
763 v1 Is+ 0:00-00 /usr/libexec/getty Pc ttyv1
Answers
E.
FreeBSD 12.0-RELEASE r341666 GENERIC
E.
FreeBSD 12.0-RELEASE r341666 GENERIC
Answers
Suggested answer: C
asked 18/09/2024
Christopher Fiotes
35 questions

Question 20

Report
Export
Collapse

When replacing the system MTA with another mail server program, which configuration file needs to be updated with the path to the new MTA?

A.
mail.conf
A.
mail.conf
Answers
B.
mailer, conf
B.
mailer, conf
Answers
C.
mta.conf
C.
mta.conf
Answers
D.
postfix.conf
D.
postfix.conf
Answers
E.
sendmail. conf
E.
sendmail. conf
Answers
Suggested answer: E
asked 18/09/2024
Dinuka Darshana
45 questions
Total 60 questions
Go to page: of 6