Linux proc question!

Asked 2 years ago, Updated 2 years ago, 41 views

I'm going to make the following with C or Python, how should I make it? ㅜ<

I don't know how to use /proc and I don't know how to do it.

Masters, please give us some advice!

Thank you.

linux

2022-09-22 11:06

1 Answers

Let me answer you by assuming that your environment is Linux.

ls/proc 1, 41, 57 etc. pid.

ps-ef You can see that the pid of mysql is 1.

cat /proc/1 where number 1 is mysql's pid. The command you ran mysqld appears.

You can get more information by searching for proc or cmdline.

http://man7.org/linux/man-pages/man5/proc.5.html


2022-09-22 11:06

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.