ExamGecko
Home Home / LPI / 702-100

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

Question list
Search
Search

Which command updates the database used by locate to find files'?

A.
searchdb
A.
searchdb
Answers
B.
locate.updatedb
B.
locate.updatedb
Answers
C.
find
C.
find
Answers
D.
whereis
D.
whereis
Answers
E.
which
E.
which
Answers
Suggested answer: B

Given the following listing

-rw-r---r--- 1 root whee1 15254 Nov 13 08:55 bobsfile

How can the superuser grant the user bob write permission to this file?

A.
chgrp bob bobsfile
A.
chgrp bob bobsfile
Answers
B.
chown bob:bob bobsfile
B.
chown bob:bob bobsfile
Answers
C.
chmod +x bobsfile
C.
chmod +x bobsfile
Answers
D.
chperm 664 bobsfile
D.
chperm 664 bobsfile
Answers
E.
vipw -u bob bobsfile
E.
vipw -u bob bobsfile
Answers
Suggested answer: A

Assuming a umask of 022, what are the default permissions in octal mode of the newly created files?

A.
022
A.
022
Answers
B.
622
B.
622
Answers
C.
644
C.
644
Answers
D.
666
D.
666
Answers
E.
755
E.
755
Answers
Suggested answer: C

Which command finds all directories within the current user's home directory?

A.
find - -type d
A.
find - -type d
Answers
B.
find. -dir
B.
find. -dir
Answers
C.
find / -d | home
C.
find / -d | home
Answers
D.
find -uid myname
D.
find -uid myname
Answers
E.
find -d home
E.
find -d home
Answers
Suggested answer: A

Which of the following lines in /etc/fstab mounts the device /dev/cd0a to /cdrom?

A.
/cdrom /dev/cdOa cd9660 ro 0 0
A.
/cdrom /dev/cdOa cd9660 ro 0 0
Answers
B.
/dev/cdOa /cdrom type=cd9660, mode=ro,uid=0,gid=0
B.
/dev/cdOa /cdrom type=cd9660, mode=ro,uid=0,gid=0
Answers
C.
cd9660@/dev/cd0a:/cdrom cd9660 ro 0 0
C.
cd9660@/dev/cd0a:/cdrom cd9660 ro 0 0
Answers
D.
/dev/cd0a /cdrom cd9660 ro 0 0
D.
/dev/cd0a /cdrom cd9660 ro 0 0
Answers
E.
cd9660:/dev/cd0a /cdrom ro 0 0
E.
cd9660:/dev/cd0a /cdrom ro 0 0
Answers
Suggested answer: D

When creating a symbolic link, an error message indicating that the target already exists is displayed. Which statement is true?

A.
In can not override an existing target so the target must be manually removed
A.
In can not override an existing target so the target must be manually removed
Answers
B.
In can override the target, but only if it is a file.
B.
In can override the target, but only if it is a file.
Answers
C.
In can override the target, but only if it is a directory
C.
In can override the target, but only if it is a directory
Answers
D.
In can override the target, whether it is a file or a directory.
D.
In can override the target, whether it is a file or a directory.
Answers
E.
In can not override an existing symbolic link.
E.
In can not override an existing symbolic link.
Answers
Suggested answer: A

Which device stands for the first BSD disk slice in the disk label on the first partition on the second SATA disk on OpenBSD?

A.
/dev/sdla
A.
/dev/sdla
Answers
B.
/dev/d2sl
B.
/dev/d2sl
Answers
C.
/dev/slld2
C.
/dev/slld2
Answers
D.
/dev/sdlp2d
D.
/dev/sdlp2d
Answers
E.
/dev/sata2a
E.
/dev/sata2a
Answers
Suggested answer: E

Which of the following commands initializes ZFS on a number of block devices?

A.
zpoo1 create
A.
zpoo1 create
Answers
B.
newzfs
B.
newzfs
Answers
C.
zfs init
C.
zfs init
Answers
D.
mkfs -t zfs
D.
mkfs -t zfs
Answers
E.
zfsload -i
E.
zfsload -i
Answers
Suggested answer: C

Which command can be used to display the local filesystems that are currently mounted'?

A.
cat /etc/fstab
A.
cat /etc/fstab
Answers
B.
df -h C du -s
B.
df -h C du -s
Answers
C.
mount -a
C.
mount -a
Answers
D.
rpcinfo
D.
rpcinfo
Answers
Suggested answer: B

Which of the following chmod commands changes the permission of the file text. txt to 750?

A.
chmod user:rw, group:r, other:x
A.
chmod user:rw, group:r, other:x
Answers
B.
chmod text.txt=u:rw,g:r,o:r
B.
chmod text.txt=u:rw,g:r,o:r
Answers
C.
chmod u=rwx,g=rx,o= text.txt
C.
chmod u=rwx,g=rx,o= text.txt
Answers
D.
chmod -u rw -g rx -o - text.txt
D.
chmod -u rw -g rx -o - text.txt
Answers
E.
chmod text.txt 750
E.
chmod text.txt 750
Answers
Suggested answer: E
Total 60 questions
Go to page: of 6