ExamGecko
Home Home / LPI / 010-160

LPI 010-160 Practice Test - Questions Answers, Page 2

Question list
Search
Search

Which permissions are set on a regular file once the permissions have been modified with the command chmod 654 file.txt?

A.
drw-r-xr--
A.
drw-r-xr--
Answers
B.
d—wxr-x--
B.
d—wxr-x--
Answers
C.
-wxr-x--x
C.
-wxr-x--x
Answers
D.
-rwxrw---x
D.
-rwxrw---x
Answers
E.
-rw-r-xr--
E.
-rw-r-xr--
Answers
Suggested answer: E

What is true about the owner of a file?

A.
Each file is owned by exactly one user and one group.
A.
Each file is owned by exactly one user and one group.
Answers
B.
The owner of a file always has full permissions when accessing the file.
B.
The owner of a file always has full permissions when accessing the file.
Answers
C.
The user owning a file must be a member of the file's group.
C.
The user owning a file must be a member of the file's group.
Answers
D.
When a user is deleted, all files owned by the user disappear.
D.
When a user is deleted, all files owned by the user disappear.
Answers
E.
The owner of a file cannot be changed once it is assigned to an owner.
E.
The owner of a file cannot be changed once it is assigned to an owner.
Answers
Suggested answer: A

Which of the following permissions are set on the /tmp/ directory?

A.
rwxrwxrwt
A.
rwxrwxrwt
Answers
B.
------rwX
B.
------rwX
Answers
C.
rwSrw-rw
C.
rwSrw-rw
Answers
D.
rwxrwS---
D.
rwxrwS---
Answers
E.
r-xr-X--t
E.
r-xr-X--t
Answers
Suggested answer: A

Which command adds the new user tux and creates the user's home directory with default configuration files?

A.
defaultuser tux
A.
defaultuser tux
Answers
B.
useradd -m tux
B.
useradd -m tux
Answers
C.
usercreate tux
C.
usercreate tux
Answers
D.
useradd -o default tux
D.
useradd -o default tux
Answers
E.
passwd -a tux
E.
passwd -a tux
Answers
Suggested answer: B

What information is stored in /etc/passwd? (Choose three.)

A.
The user's storage space limit
A.
The user's storage space limit
Answers
B.
The numerical user ID
B.
The numerical user ID
Answers
C.
The username
C.
The username
Answers
D.
The encrypted password
D.
The encrypted password
Answers
E.
The user\s default shell
E.
The user\s default shell
Answers
Suggested answer: B, C, D

Which of the following tar options handle compression? (Choose two.)

A.
-bz
A.
-bz
Answers
B.
-z
B.
-z
Answers
C.
-g
C.
-g
Answers
D.
-j
D.
-j
Answers
E.
-z2
E.
-z2
Answers
Suggested answer: B, D

FILL BLANK

What keyword is used in a shell script to begin a loop? (Specify one keyword only, without any additional information.)

A.
for
A.
for
Answers
Suggested answer: A

Which of the following commands creates an archive file work.tar from the contents of the directory ./work/?

A.
tar --new work.tar ./work/
A.
tar --new work.tar ./work/
Answers
B.
tar -cf work.tar ./work/
B.
tar -cf work.tar ./work/
Answers
C.
tar -create work.tgz -content ./work/
C.
tar -create work.tgz -content ./work/
Answers
D.
tar work.tar < ./work/
D.
tar work.tar < ./work/
Answers
E.
tar work > work.tar
E.
tar work > work.tar
Answers
Suggested answer: B

Which of the following keys can be pressed to exit less?

A.
l
A.
l
Answers
B.
x
B.
x
Answers
C.
e
C.
e
Answers
D.
q
D.
q
Answers
E.
!
E.
!
Answers
Suggested answer: D

The current directory contains the following file:

-rwxr-xr-x 1 root root 859688 Feb 7 08:15 test.sh

Given that the file is a valid shell script, how can this script be executed? (Choose two.)

A.
run test.sh
A.
run test.sh
Answers
B.
${test.sh}
B.
${test.sh}
Answers
C.
cmd ./test.sh
C.
cmd ./test.sh
Answers
D.
./test.sh
D.
./test.sh
Answers
E.
bash test.sh
E.
bash test.sh
Answers
Suggested answer: D, E
Total 80 questions
Go to page: of 8