Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
14 Cards in this Set
- Front
- Back
You need to create a user account with these specific parameters:
-use pmorrill as the login name -use Paul Morrill as the comment -use /home/pmorrill_temp as the home directory -use 683 as the UID |
useradd -c "Paul Morrill" -d ~/pmorrill_temp -u 683 pmorrill
useradd -c "Paul Morrill" -d /home/pmorrill_temp -u 683 pmorrill useradd -d "Paul Morrill" -h ~/pmorrill_temp -u 683 pmorrill useradd pmorrill -c "Paul Morrill" -d /home/pmorrill_temp -u 683 pmorrill |
|
A programmer named Brandon calls with an issue. He is currently using the C shell each time he logs in, but has been told by his manager to start using the Bash shell. Which command will change Brandon's shell to the desired stting?
|
usermod -s /bin/bash brandon
usermod brandon /bin/bash userchange -a brandon /bin/bash useradd brandon /bin/bash |
|
An employee named Bob Smith, with user name of bsmith, has left the company. You have been instructed by your supervisor to delete his user account along with his home directory.
Which of the following commands would produce the required outcome? (choose all that apply) |
userdel -r bsmith
userdel -h bsmith userdel bsmith;rm -rf /home/bsmith userdel bsmith |
|
One of your users, Karen Scott, has recently married and is noe Karen Jones. She has requested that her username be changes from kscott to kjones, but no other values changes. Which will accomplish this?
|
usermod -u kscoot kjones
usermod -l kjones kscott usermod -l kscott kjones usermod -u kjones kscott |
|
Which directory contains a set of configuration file templates that are copied into a new user's home directory when it is created?
|
?
|
|
What would be the outcome of the following command?
userdel -r jjones |
- The user jjones' home directory would be deleted, but the user account still exists.
- The user account, jjones, would be deleted, but jjpnes' home directory would be left untouched - The user account, jjones, would be deleted along with jjones' home directory - The user account jjpnes, would be deleted along with the jjones' home directory and all files owned by jjones |
|
You have performed an audit and have found active accounts for employees who no longer work for the company. You want to disable those accounts. What command example will disable a user account?
|
usermod -L joer
usermod -l joer usermod -u joer usermod -d joer |
|
Which file stores BASH preferences for the gshant user account?
|
?
|
|
Which useradd option displays the default values specified in the /etc/default/useradd file
|
?
|
|
Which of the following utilities would you typically use to lock a user account? (select 2)
|
useradd
passwd userdel usermod |
|
Yo suspect that the gshant user account is locked. Which command will show the status of the user account?
|
?
|
|
A user with an account name of larry has just been terminated from the company. There is good reason to believe that the user will attempt to access and damage the files in the system in the very near future. Which command below will disables or remove the user account from the system and remove his home directory?
|
userdel -r larry
userdel -home larry userdel larry userdel -h larry |
|
You need to change the default home directory by the useradd utility when creating a user account. Which ile should you edit?
|
?
|
|
You are configuring a Linux system for 5 different users. Before you create the user accounts, you need to ensure that specific commands execute clean up tasks when the user logs out of the Linux system.
You want to reduce redundant actions by configuring the commands once for all users that will be created on the system. Where should you configure the commands? |
/etc/profile
~/.bash_profile /etc/skel/.bash_logout ~/.bash_logout |