SG3 Flashcards
7-Processes & Services
Q: How do you check running processes?
A: ps aux or top
7-Processes & Services
Q: How do you terminate a process?
A: kill PID or killall process_name
7-Processes & Services
Q: What does the systemctl command do?
A: Manages system services (start, stop, restart, enable, disable).
8-Networking Basics
Q: What command checks your IP address?
A: ip a or ifconfig (older systems)
8-Networking Basics
Q: How do you test network connectivity?
A: ping destination
8-Networking Basics
Q: What command shows active network connections?
A: netstat -tulnp or ss -tulnp
9-Scripting & Automation
Q: What is a shell script?
A: A text file containing a sequence of commands executed by the shell.
9-Scripting & Automation
Q: How do you make a script executable?
A: chmod +x script.sh
9-Scripting & Automation
Q: What symbol is used for comments in shell scripts?
A: #
10-Archiving & Compression
Q: How do you create a tar archive?
A: tar -cvf archive.tar files
10-Archiving & Compression
Q: How do you extract a tar archive?
A: tar -xvf archive.tar
10-Archiving & Compression
Q: What command compresses a file using gzip?
A: gzip filename
10-Archiving & Compression
Q: How do you extract a .zip file?
A: unzip filename.zip