Task 3.6 - Adding Users Flashcards

(28 cards)

1
Q

What command provides an abbreviated view of the /etc/passwd file?

A

more

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does the command more /etc/passwd show?

A

Entries for existing user accounts

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the default UID for a new user account in /etc/passwd?

A

1000

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How does the UID increment for each new user account in /etc/passwd?

A

By 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What command is used to set up a new user account?

A

adduser

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does egrep stand for?

A

Extended Global Regular Expressions Print

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What pattern does the command egrep x:100[0-9] search for?

A

For entries matching x:100 and any number between 0-9

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

True or False: The command grep and egrep perform the same function.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What command can you issue to see the manual page entry for grep?

A

man grep

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What should you type to quit the man pages?

A

‘Q’ or ‘q’

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What command do you use to check your current directory?

A

pwd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Fill in the blank: No files or directories have been automatically added to _______ when it was created.

A

YOUR own home directory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What command would you use to remove a user account named ATuring?

A

Remove ATuring using the appropriate command

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What directory must be accessed to remove Alan Turing’s home directory?

A

/home

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is the specific login format for users?

A

Each user will have a specific login, for example, ablack with the password black.

17
Q

What information is required for each user entry?

A

The required information includes:
* Login
* Password
* Full Name
* Room Number
* Work Phone
* Home Phone
* Other (groups)

18
Q

What command is used to list users with a specific UID range?

A

more /etc/passwd | grep x:100[0-6]

19
Q

What command retrieves the last 6 entries in the /etc/passwd file?

A

cat /etc/passwd | tail -6

20
Q

What command is used to restart the system immediately?

A

shutdown now –r

21
Q

What command should be issued to log in as the user ablack?

A

Login as ablack

22
Q

What command is used to display a long listing of the user’s home directory?

23
Q

What command is used to exit from the current session?

24
Q

What command is used to switch user to James Green?

25
What command is used to change the directory after switching users?
cd
26
What command is used to return to the previous user after switching?
exit
27
What command is used to find all .exe files in the /home directory?
find /home -name *.exe
28
What is the final step to complete the task?
Upload this file to canvas using the link provided.