11.03.2025 Flashcards

(5 cards)

1
Q

How to check if any process is running in a particular port ex of port - 2134?

A

sudo netstat -tulnp | grep 2134

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

How to find if another instance of upf is running?

A
  1. ps -aef | grep upf (System V)
  2. ps aux | grep upf (BSD)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How to generate a SSH key, to add in gitlab?

A

ssh-keygen

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

How to list all the currently loaded modules?

A

lsmod

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

How to kill a PID (which is mostly in the first or second column)?

A

sudo kill -9 [PID]

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