Linux & Systems Administration Flashcards

(6 cards)

1
Q

How do you check hard drive health on Linux?

A

Using smartctl -a /dev/sda or smartmontools to read S.M.A.R.T logs.

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

What Linux command lists hardware components?

A

lshw, lspci, lsblk, or lscpu.

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

How do you kill a “zombie” process in Linux?

A

You cannot directly kill a zombie (it is already dead). You must kill its parent process using kill -9 <parent_pid>.</parent_pid>

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

What command shows network interface configuration?

A

ip addr or ifconfig.

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

What is the function of /etc/resolv.conf?

A

It contains DNS server information for resolving hostnames.

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

How do you run a bash script at 8 PM daily?

A

Using cron jobs (crontab -e).

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