如果不创建文件,我可以使用任何免费的 inode 吗?我想编写一个脚本,该脚本将使用系统中所有空闲的 inode。是否可以?
我正在使用 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)
现在我的问题是为什么 …