Hardware Flashcards

1
Q

How do you view CPU info?

A

cat /proc/cpuinfo

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

What is the command to see RAM utilisation?

A

free

-h human readable

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

What is the command to get info about the motherboard, BIOS, etc.

A

dmidecode

*must run with root priveleges

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

What is the command to view block devices (i.e hard disks) attached to the system?

A

lslbk

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

What is the command to get free space on the system?

A

df

-h output human readable format

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

What is the naming convention for hard drives?

A
/dev/{xxx} | hard drive name
/dev/{xxxn} | hard drive partition
i.e /dev/sda
i.e /dev/sda1 *first partition
i.e /dev/sdb1 *second hard drive, first partition
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the command to interactively show statistics on running processes, cpu and ram usage?

A

top

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

What is the command to list statistics on running processes, cpu and ram usage?

A

ps

  • u specify username -e show all
  • H process hierachy -x show command being run
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How do you kill a process using process ID?

A

kill >PID<
kill -15 >PID<
kill -SIGTERM >PID

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

How do you kill a process using its name?

A

pkill

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

How do you search for the ID of a process?

A

pgrep

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

How do you kill a non-responding process?

A

kill -9

kill -SIGKILL

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

How do you view the kernel ring buffer?

A

dmesg

  • w real time -H colour formatting
  • not stored on disk as updates constantly
How well did you know this?
1
Not at all
2
3
4
5
Perfectly