Linux Basics Flashcards

1
Q

What command would you use to create an account?

A

Sudo useradd name

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

What command would you use to create a group?

A

sudo addgroup name

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

What path would user account files be?

A

/etc/passwd

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

What command would you use to delete a user?

A

sudo deluser –remove-home name

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

What command would you use to execute “Read” Permissions to a file?

A

chmod +r filename

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

What command gives read, write, and execute permissions to a user group?

A

chmod 777 filename

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

Write the commands the install and configure a DHCP server.

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

Write the process for installing and configuring a DNS server using BIND.

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

What permissions uses 7 as its value?

A

Read, Write, Execute

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

What permissions uses 6 as its values?

A

Read and write

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

What permissions uses 3 as its value?

A

Write and execute

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

What is the following directory used for?

/home

A

A user’s home directory. A directory where the user’s files are stored.

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

What is the following directory used for?

/var

A

Variable data; files that is modified by the user is stored here

Ex. /var/log

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

What is the following directory used for?

/usr

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

What is the following directory used for?

/opt

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

What is the following directory used for?

/sbin

A

Vital programs needed for the computer system

17
Q

What is the following directory used for?

/dev

A

Lists the hardware connected to the computer system

18
Q

What is the following directory used for?

/usr/bins

A

Contains executable files the support the user’s system

19
Q

What is the following directory used for?

/etc

A

Host-Specific system configuration; contains files that support Time, user passwords, boot time loading scripts,

20
Q

What command would you use o create an archive?

A

Tar -c

21
Q

What does the following command do?
Grep -l

A

Displays the files that only has the each criteria specified