Linux+ 2.2

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

You use the useradd -D command, where does it pull info from?

/etc/default/useradd

Which of the following files and directories may be involved in setting up the environment for all system users?

/etc/profile, /etc/profile.d/, /etc/bash.bashrc, /etc/bash

The last command, by default, pulls data from which file?

/var/log/wtemp

You create an account using the appropriate utility, except the home directory wasn't created. Which of the following most likely caused this to occur?

The CREATE_HOME directive is set to no

Which of the following are fields within a /etc/passwd file record? Username,password, password change date, special flag, UID

Username, password, uid

You need to edit quota grace periods. Which command should you use?

edquota -t

A user has logged into the tty3 terminal. Which of the following user environment files is executed first if found in the user's home directory?

.bash_profile

User environment files typically come from where?

/etc/skel

Which of the following are fields within a /etc/shadow file? Expiration dates (password and account), password, comment, default shell

Expiration dates and password

Which of the following could be used to view the members of the NCC-1701 group?

getent group NCC-1701, grep NCC-1701 /etc/group

Which of the following commands will allow you to view the NUhra account's record data in the /etc/passwd file?

cat /etc/passwd, grep NUhura /etc/passwd, getent passwd Nuhura

Which of the following commands will allow you to switch temporarily from your account's default group to another group?

newgrp

Which of the following will allow you to change an account's /etc/shadow file record data? passwd, usermod, userdel, getent, chage

passwd, usermod, userdel, chage

A problem has occurred concerning group quotas on three filesystems. You need to remove all quota limits temporarily. What command should you use?

quotaoff -a

Your boss asked you to remove a user's account and all his home directory files. What command should you use?

userdel -r

Which of the following commands is the best one to add JKirk as a member to a new group called NCC-1701 and not remove any of the account's previous group members?

usermod -aG ncc-1701 JKirk

Which fields contain the same data for both a /etc/password and /etc/shadow entry?

username

Which of the following are options used in the /etc/fstab file to designate a filesystem as one that uses quotas?

usrquota, grpquota

Which of the following commands will display CPU load for users?

w

Which of the following commands displays information about the account issuing the command?

whoami, who am i, id


Set pelajaran terkait

Network Security, Firewalls, and VPNs | Chapter One - "Fundamentals of Network Security" | Assessment Questions #1 - #20

View Set

Ch 33 Obstetrics and Neonatal Care (Course 5 OB/Pediatrics)

View Set

해커스 토익 왕기초 RC 24 DAYS - DAY2

View Set

Business Process Improvement Exam #2

View Set