Task 3.6 - Adding Users Flashcards
(28 cards)
What command provides an abbreviated view of the /etc/passwd file?
more
What does the command more /etc/passwd show?
Entries for existing user accounts
What is the default UID for a new user account in /etc/passwd?
1000
How does the UID increment for each new user account in /etc/passwd?
By 1
What command is used to set up a new user account?
adduser
What does egrep stand for?
Extended Global Regular Expressions Print
What pattern does the command egrep x:100[0-9] search for?
For entries matching x:100 and any number between 0-9
True or False: The command grep and egrep perform the same function.
True
What command can you issue to see the manual page entry for grep?
man grep
What should you type to quit the man pages?
‘Q’ or ‘q’
What command do you use to check your current directory?
pwd
Fill in the blank: No files or directories have been automatically added to _______ when it was created.
YOUR own home directory
What command would you use to remove a user account named ATuring?
Remove ATuring using the appropriate command
What directory must be accessed to remove Alan Turing’s home directory?
/home
What is the specific login format for users?
Each user will have a specific login, for example, ablack with the password black.
What information is required for each user entry?
The required information includes:
* Login
* Password
* Full Name
* Room Number
* Work Phone
* Home Phone
* Other (groups)
What command is used to list users with a specific UID range?
more /etc/passwd | grep x:100[0-6]
What command retrieves the last 6 entries in the /etc/passwd file?
cat /etc/passwd | tail -6
What command is used to restart the system immediately?
shutdown now –r
What command should be issued to log in as the user ablack?
Login as ablack
What command is used to display a long listing of the user’s home directory?
ls -l
What command is used to exit from the current session?
exit
What command is used to switch user to James Green?
su