Ensurepass

QUESTION 241 CORRECT TEXT

You wish to add the user Sheets to the system including his home directory. Type in the simplest command to do this including switches

Answer: useradd -m Sheets


QUESTION
242 CORRECT TEXT

You wish to remove the user stef from the system, including his home directories. Type in the simplest command to do this?

Answer: userdel -r stef


QUESTION
243 CORRECT TEXT

User rick has been suspended from your company and you wish to lock his account to stop anyone using it. Type in the simplest command to do this

Answer:

usermod rick -l

usermod–lrick

passwd -lrick


QUESTION
244 CORRECT TEXT

User Sheets has been exiled to the marketing department who has a group name mktg. You now wish to change the primary group for the user Sheets to the mktg group. Type in the simplest command to do this?

Answer: usermod -g mktg Sheets


QUESTION
245 CORRECT TEXT

Your user matt has forgotten his passwd and you wish to reset it. Type in the command line to change his password. You are currently logged in as root.

Answer: passwd matt


QUESTION
246 CORRECT TEXT

What is the full path and file name of the file that contains the configuration files for system logging?

Type in full path and file name.

Answer: /etc/syslog.conf


QUESTION
247 CORRECT TEXT

You wish to list the contents of your crontab. Type in the simplest command to do this

Answer: crontab -l


QUESTION
248 CORRECT TEXT

You wish to make changes to your crontab entry. Type in the simplest command to make this change?

Answer: crontab -e


QUESTION
249 CORRECT TEXT

You wish to archive and compress all the files in your home directory starting with the word projects into a file called myprojects.tar.gz. You are currently in your home directory.

Type in the command that would do this?

Answer: tar -czf myprojects.tar.gz projects*


QUESTION
250 CORRECT TEXT

You have a tarball called myprojects.tar.gz and you wish to view the permissions and ownership of its contents without unpacking it. Type in the simplest command to do this.

Answer: tar -tzvf myprojects.tar.gz

Download Latest LPI 117-102 DUMPS Real Free Tests , help you to pass exam 100%.

Comments are closed.