Linux 文件“/proc/{processId}/cmdline”的长度限制有多长?
我有一个java进程,它的类路径包含许多JAR,因此启动命令非常长 假设进程id为110101,当我逐个命令检查该命令时,我发现该命令不完整,仅包含约4000个字符 是否有其他方法显示原始启动命令Linux 文件“/proc/{processId}/cmdline”的长度限制有多长?,linux,command,Linux,Command,我有一个java进程,它的类路径包含许多JAR,因此启动命令非常长 假设进程id为110101,当我逐个命令检查该命令时,我发现该命令不完整,仅包含约4000个字符 是否有其他方法显示原始启动命令 man proc /proc/[pid]/cmdline This holds the complete command line for the process, unless the process is a zombie. In t
man proc
/proc/[pid]/cmdline
This holds the complete command line for the process, unless
the process is a zombie. In the latter case, there is nothing
in this file: that is, a read on this file will return 0
characters. The command-line arguments appear in this file as
a set of strings separated by null bytes ('\0'), with a
further null byte after the last string.
它可能不会通过cat文件为您提供所有参数