博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
bash 获取进程id_如何在Bash中获取正在运行的进程的“父进程” ID?
阅读量:2518 次
发布时间:2019-05-11

本文共 347 字,大约阅读时间需要 1 分钟。

bash 获取进程id

How to get the running ’ parent process’ ID in Bash?

如何在Bash中获取正在运行的 “父进程” ID?

In Bash, you can get the parent process’s pid from the variable PPID.

Bash中 ,您可以从变量PPID获取父进程的pid。

Note that in a (...) subshell, the $$ stores the subshell’s parent pid actually.

请注意,在(...)子 , $$实际上存储了该子的父 pid。

Answered by dtivl.
dtivl回答。

翻译自:

bash 获取进程id

转载地址:http://cplwd.baihongyu.com/

你可能感兴趣的文章
php这是一个随机打印输出字符串的例子
查看>>
前端的图片压缩image-compressor(可在图片上传前实现图片压缩)
查看>>
20165309 实验四 Android程序设计
查看>>
团队博客目录
查看>>
linux的启动流程
查看>>
摩尔斯电码(Morse Code)Csharp实现
查看>>
C#NULL条件运算符
查看>>
使用GZIP压缩网页内容(一)
查看>>
《深入浅出MFC》第二章 C++的重要性质
查看>>
关于智能硬件设备shell安全设计
查看>>
homework1
查看>>
3选择结构程序设计
查看>>
Python学习 12day__高级语法
查看>>
关于做产品的一点思考
查看>>
超大地形的处理 (Terrain Visualization)【转自知乎】
查看>>
html知识2
查看>>
Python—面向对象01
查看>>
Android DDMS ADB Hierarchy Viewer Lint
查看>>
Linux命令学习(5):more和less
查看>>
Linux 三剑客之sed命令总结
查看>>