ExamGecko
Home Home / LPI / 010-160

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

Question list
Search
Search

Which statements about the directory /etc/skel are correct? (Choose two.)

A.
The personal user settings of root are stored in this directory.
A.
The personal user settings of root are stored in this directory.
Answers
B.
The files from the directory are copied to the home directory of the new user when starting the system.
B.
The files from the directory are copied to the home directory of the new user when starting the system.
Answers
C.
The files from the directory are copied to the home directory of a new user when the account is created.
C.
The files from the directory are copied to the home directory of a new user when the account is created.
Answers
D.
The directory contains a default set of configuration files used by the useradd command.
D.
The directory contains a default set of configuration files used by the useradd command.
Answers
E.
The directory contains the global settings for the Linux system.
E.
The directory contains the global settings for the Linux system.
Answers
Suggested answer: C, D

What is true about links in a Linux file system?

A.
A symbolic link can only point to a file and not to a directory.
A.
A symbolic link can only point to a file and not to a directory.
Answers
B.
A hard link can only point to a directory and never to a file.
B.
A hard link can only point to a directory and never to a file.
Answers
C.
When the target of the symbolic link is moved, the link is automatically updated.
C.
When the target of the symbolic link is moved, the link is automatically updated.
Answers
D.
A symbolic link can point to a file on another file system.
D.
A symbolic link can point to a file on another file system.
Answers
E.
Only the root user can create hard links.
E.
Only the root user can create hard links.
Answers
Suggested answer: D

Which files are the source of the information in the following output? (Choose two.)

uid=1000 (bob) gid=1000 (bob) groups=1000 (bob), 10 (wheel), 150 (wireshark), 989 (docker), 1001 (libvirt)

A.
/etc/id
A.
/etc/id
Answers
B.
/etc/passwd
B.
/etc/passwd
Answers
C.
/etc/group
C.
/etc/group
Answers
D.
/home/index
D.
/home/index
Answers
E.
/var/db/users
E.
/var/db/users
Answers
Suggested answer: B, C

Which of the following tasks can the command passwd accomplish? (Choose two.)

A.
Change a user's username.
A.
Change a user's username.
Answers
B.
Change a user's password.
B.
Change a user's password.
Answers
C.
Create a new user account.
C.
Create a new user account.
Answers
D.
Create a new user group.
D.
Create a new user group.
Answers
E.
Lock a user account.
E.
Lock a user account.
Answers
Suggested answer: C, E

What is true about the su command?

A.
It is the default shell of the root account.
A.
It is the default shell of the root account.
Answers
B.
It can only be used by the user root.
B.
It can only be used by the user root.
Answers
C.
It runs a shell or command as another user.
C.
It runs a shell or command as another user.
Answers
D.
It changes the name of the main administrator account.
D.
It changes the name of the main administrator account.
Answers
E.
It locks the root account in specific time frames.
E.
It locks the root account in specific time frames.
Answers
Suggested answer: C

FILL BLANK

What parameter of ls prints a recursive listing of a directory's content? (Specify ONLY the option name without any values or parameters.)

A.
ls -R
A.
ls -R
Answers
Suggested answer: A

Most commands on Linux can display information on their usage. How can this information typically be displayed?

A.
By running the command with the option /? or /??.
A.
By running the command with the option /? or /??.
Answers
B.
By running the command with the option ?! or ?=!.
B.
By running the command with the option ?! or ?=!.
Answers
C.
By running the command with the option /doc or /documentation.
C.
By running the command with the option /doc or /documentation.
Answers
D.
By running the command with the option -h or --help.
D.
By running the command with the option -h or --help.
Answers
E.
By running the command with the option -m or --manpage.
E.
By running the command with the option -m or --manpage.
Answers
Suggested answer: E

Which of the following commands shows the absolute path to the current working directory?

A.
who
A.
who
Answers
B.
cd ..
B.
cd ..
Answers
C.
pwd
C.
pwd
Answers
D.
ls -l
D.
ls -l
Answers
E.
cd ~/home
E.
cd ~/home
Answers
Suggested answer: C

Which of the following commands output the content of the file Texts 2.txt? (Choose two.)

A.
cat 'Texts 2.txt'
A.
cat 'Texts 2.txt'
Answers
B.
cat -- Texts 2.txt
B.
cat -- Texts 2.txt
Answers
C.
cat |Texts 2.txt|
C.
cat |Texts 2.txt|
Answers
D.
cat 'Texts\ 2.txt'
D.
cat 'Texts\ 2.txt'
Answers
E.
cat Texts\ 2.txt
E.
cat Texts\ 2.txt
Answers
Suggested answer: A, B

Which command displays file names only and no additional information?

A.
ls -a
A.
ls -a
Answers
B.
ls -lh
B.
ls -lh
Answers
C.
ls -l
C.
ls -l
Answers
D.
ls -alh
D.
ls -alh
Answers
E.
ls -nl
E.
ls -nl
Answers
Suggested answer: A
Total 80 questions
Go to page: of 8