ExamGecko
Home / LPI / 010-160 / List of questions
Ask Question

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

List of questions

Question 11

Report Export Collapse

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

drw-r-xr--
drw-r-xr--
d—wxr-x--
d—wxr-x--
-wxr-x--x
-wxr-x--x
-rwxrw---x
-rwxrw---x
-rw-r-xr--
-rw-r-xr--
Suggested answer: E
asked 18/09/2024
Samy Mameri
30 questions

Question 12

Report Export Collapse

What is true about the owner of a file?

Each file is owned by exactly one user and one group.
Each file is owned by exactly one user and one group.
The owner of a file always has full permissions when accessing the file.
The owner of a file always has full permissions when accessing the file.
The user owning a file must be a member of the file's group.
The user owning a file must be a member of the file's group.
When a user is deleted, all files owned by the user disappear.
When a user is deleted, all files owned by the user disappear.
The owner of a file cannot be changed once it is assigned to an owner.
The owner of a file cannot be changed once it is assigned to an owner.
Suggested answer: A
asked 18/09/2024
Jimmy Wasson
40 questions

Question 13

Report Export Collapse

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

rwxrwxrwt
rwxrwxrwt
------rwX
------rwX
rwSrw-rw
rwSrw-rw
rwxrwS---
rwxrwS---
r-xr-X--t
r-xr-X--t
Suggested answer: A
asked 18/09/2024
Morris Djavaheri
32 questions

Question 14

Report Export Collapse

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

defaultuser tux
defaultuser tux
useradd -m tux
useradd -m tux
usercreate tux
usercreate tux
useradd -o default tux
useradd -o default tux
passwd -a tux
passwd -a tux
Suggested answer: B
asked 18/09/2024
Ishan Patel
47 questions

Question 15

Report Export Collapse

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

The user's storage space limit
The user's storage space limit
The numerical user ID
The numerical user ID
The username
The username
The encrypted password
The encrypted password
The user\s default shell
The user\s default shell
Suggested answer: B, C, D
asked 18/09/2024
Emmanuel Aminu
49 questions

Question 16

Report Export Collapse

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

-bz
-bz
-z
-z
-g
-g
-j
-j
-z2
-z2
Suggested answer: B, D
asked 18/09/2024
Christopher Fiotes
38 questions

Question 17

Report Export Collapse

FILL BLANK

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

for
for
Suggested answer: A
asked 18/09/2024
evalson martin laplap
53 questions

Question 18

Report Export Collapse

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

tar --new work.tar ./work/
tar --new work.tar ./work/
tar -cf work.tar ./work/
tar -cf work.tar ./work/
tar -create work.tgz -content ./work/
tar -create work.tgz -content ./work/
tar work.tar < ./work/
tar work.tar < ./work/
tar work > work.tar
tar work > work.tar
Suggested answer: B
asked 18/09/2024
Cesar Castillo
48 questions

Question 19

Report Export Collapse

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

l
l
x
x
e
e
q
q
!
!
Suggested answer: D
asked 18/09/2024
Vinnie Meuldijk
38 questions

Question 20

Report Export Collapse

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.)

run test.sh
run test.sh
${test.sh}
${test.sh}
cmd ./test.sh
cmd ./test.sh
./test.sh
./test.sh
bash test.sh
bash test.sh
Suggested answer: D, E
asked 18/09/2024
Jatuchot Siriwongsilp
46 questions
Total 80 questions
Go to page: of 8