SG3 Flashcards

1
Q

7-Processes & Services

Q: How do you check running processes?

A

A: ps aux or top

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

7-Processes & Services

Q: How do you terminate a process?

A

A: kill PID or killall process_name

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

7-Processes & Services

Q: What does the systemctl command do?

A

A: Manages system services (start, stop, restart, enable, disable).

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

8-Networking Basics

Q: What command checks your IP address?

A

A: ip a or ifconfig (older systems)

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

8-Networking Basics

Q: How do you test network connectivity?

A

A: ping destination

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

8-Networking Basics

Q: What command shows active network connections?

A

A: netstat -tulnp or ss -tulnp

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

9-Scripting & Automation

Q: What is a shell script?

A

A: A text file containing a sequence of commands executed by the shell.

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

9-Scripting & Automation

Q: How do you make a script executable?

A

A: chmod +x script.sh

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

9-Scripting & Automation

Q: What symbol is used for comments in shell scripts?

A

A: #

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

10-Archiving & Compression

Q: How do you create a tar archive?

A

A: tar -cvf archive.tar files

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

10-Archiving & Compression

Q: How do you extract a tar archive?

A

A: tar -xvf archive.tar

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

10-Archiving & Compression

Q: What command compresses a file using gzip?

A

A: gzip filename

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

10-Archiving & Compression

Q: How do you extract a .zip file?

A

A: unzip filename.zip

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