Question
Question 44 (1 point) The command cat /etc/passwd | grep jacky will __________. Question 44 options: display the entire file /etc/passwd display all lines in
Question 44 (1 point)
The command cat /etc/passwd | grep jacky will __________.
Question 44 options:
|
display the entire file /etc/passwd
|
|
display all lines in /etc/passwd that contain the word jacky
|
|
display an error message
|
|
remove all lines in /etc/passwd that contain the word jacky
|
|
None of the above
|
Question 45 (1 point)
If user1 is a valid account and the home directory for user1 is /home/user1, what is the correct command that changes user1s home directory to /home/userone and moves the contents of the current home directory to the new home directory.
Question 45 options:
|
usermod -d /home/userone user1
|
|
usermod -d /home/userone -m user1
|
|
usermod /home/userone -m user1
|
|
usermod -h /home/userone user1
|
|
None of the above
|
Question 46 (1 point)
Login as root, which of the following is the right command to let user1 join an existing group named students?
Question 46 options:
|
gpasswd -a user1 students
|
|
groupadd students user1
|
|
newgrp students user1
|
|
usermod -e students user1
|
|
None of the above
|
Question 47 (1 point)
Which of the following commands deletes user1 from /etc/passwd and removes user1's home directory and any files stored in it?
Question 47 options:
|
userdel -r user1
|
|
userdel user1
|
|
usermod -r user1
|
|
usermod -d user1
|
|
None of the above
|
Question 48 (1 point)
What is the correct command that creates a user account as the following? Username: user1 Home directory: /home/userone (The home directory should be created if it does not exist) Login shell: /bin/bash
Question 48 options:
|
useradd user1
|
|
useradd /home/userone /bin/bash user1
|
|
useradd -d /home/userone -m -s /bin/bash user1
|
|
useradd -h /home/userone -c /bin/bash user1
|
|
None of the above
|
Question 49 (1 point)
Based on the following: Log in as root, and run the following commands:
groupadd group1
groupadd group2
useradd user1
useradd G group1,group2 user2
useradd g group2 user3
useradd G user1,user2,group1 user4
gpasswd a user1 group2
gpasswd d user2 group2
usermod G group1,group2 user3
groups user4
Who are members of group1?
Question 49 options:
|
user2, user4
|
|
user1, user2
|
|
user2, user3, user4
|
|
user1, user3, user4
|
|
None of the above
|
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started