Linux+ Questions and Answers Already
Graded A
Going through the process of creating a new user, which commands will make this task
successful? (select 2)
A. useradd
B. passwd
C. /etc/passwd
D. /etc/ A. useradd
B. passwd
You are unable to run the apt-get command because you do not hav...
Linux+ Questio ns and Answers Already Graded A Going through the process of creating a new user, which commands will make this task successful? (select 2) A. useradd B. passwd C. /etc/passwd D. /etc/logins.def ✔✔A. useradd B. passwd You are unable to run the apt -get command because you do not have root priveleges. what command can you run to be able to update the APT (Advanced Package Tool) database of available packages? A. sudo apt -get update B. su -root C. visudo D. Sudoedit ✔✔A. sudo apt -get update A new user called amoon was created on a Linux workstation for a new admin named Alex Moon. The administrator is unable to use it. How will you resolve this? A. vi /etc/passwd B. passwd amoon C. usermod -c "Alex Moon" amoon D. passwd -l amoon ✔✔B. passwd amoon To better manage the users on a Linux workstation, you create a group with a specific name and system defaults. which command will create the group, and where can you find information for the newly created group? (select 2) A. gro upadd accountants B. groupadd -g 555 accountants C. /etc/group file D. /etc/profile file ✔✔A. groupadd accountants C. /etc/group file You are unsure which user account you have used to login to your current session on a linux server. which command can you run to display your current user name? A. who B. whoami C. who -i D. w ✔✔B. whoami Which file can you configure to customize your own use of aliases? A. /etc/bashrc B. .bash_profile C. /etc/profile D. .bashrc ✔✔D. bashrc You want to check the permissions of several directories and remove the ability to write to them, if necessary. Which commands will help you accomplish this? (select 2) A. ls -l B. ls -ld C. chmod u -w, g-w, o-w {file or directory name} D. chmod u+r, g+r, o +r {file or directory name} ✔✔B. ls -ld C. chmod u -w, g-w, o-w {file or directory name} An employee in the accounting department who managed a specific directory on a linux file server has left the company. another user called amoon or Alice Moon must tak e over the directory. which command will effectively change the directory's ownership? A. chgrp accountants {directory name} B. ls -ld {directory name} C. chmod g+s {directory name} D. chown amoon {directory name} ✔✔D. chown amoon {directory name} You wan t to set a specific file as immutable to prevent it from being modified even from the root user. what command will set this file as immutable? A. chattr +i {file name} B. setfacl -b {file name} C. chmod u+s {file name} D. lsattr {file name} ✔✔A. chattr +i {file name} A user is denied permission to enter a directory, despite having the read permission. what is most likely cause for the denial and what is the solution? (select 2) A. Use chmod to add execute permissions to the specific directory. B. The user needs execute permission to have access to the directory
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller StellarScores. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $10.99. You're not tied to anything after your purchase.