小编ash*_*hok的帖子

如何使用所有的inode

如果不创建文件,我可以使用任何免费的 inode 吗?我想编写一个脚本,该脚本将使用系统中所有空闲的 inode。是否可以?

filesystems inode files

6
推荐指数
3
解决办法
2964
查看次数

为什么从终端打开和双击打开时 PPID 不同

我正在使用 Linux。当我通过 gedit 命令在 gnome-terminal 中打开gedit程序时,它已打开图形 gedit 文本编辑器。然后 gedit 有 PPID bash

    ashokkrishna@ashokkrishna-Lenovo-B560:~$ ps -eaf | grep gedit
    ashokkr+  1682   820  3 04:09 pts/6    00:00:00 gedit
    ashokkr+  1695  1568  0 04:09 pts/9    00:00:00 grep --color=auto gedit
Run Code Online (Sandbox Code Playgroud)

这里 820 是bash的 PID

ashokkr+   820 32505  0 03:32 pts/6    00:00:00 bash
Run Code Online (Sandbox Code Playgroud)

但是当我通过双击 gedit 图标打开相同的 gedit 时。

ashokkrishna@ashokkrishna-Lenovo-B560:~$ ps -eaf | grep gedit
ashokkr+  1855  1982 14 04:16 ?        00:00:00 /usr/bin/gedit
Run Code Online (Sandbox Code Playgroud)

我得到了 1982 PPID,这是init

1982 ?        00:00:00 init
Run Code Online (Sandbox Code Playgroud)

现在我的问题是为什么 …

shell process ubuntu process-management

0
推荐指数
1
解决办法
763
查看次数

标签 统计

files ×1

filesystems ×1

inode ×1

process ×1

process-management ×1

shell ×1

ubuntu ×1