如何从Ubuntu上的PowerShell内核获取进程命令行?
我在Ubuntu 18.04服务器上。我知道如何从Ubuntu上的PowerShell内核获取进程命令行?,powershell,command-line,process,ubuntu-18.04,powershell-core,Powershell,Command Line,Process,Ubuntu 18.04,Powershell Core,我在Ubuntu 18.04服务器上。我知道ps auxww可以获取完整的命令行信息。例如,通过运行ps auxww,我知道命令/usr/local/bin/my program-parameter:8888正在运行。如何从PowerShell获取相同的信息?我到处搜索,所有的信息都是关于如何在Windows上获取命令行信息的 Ubuntu 18.04 PowerShell上的 你试过ps-a-F了吗。它应该给出你正在寻找的细节 如果需要有关正在运行/所有进程的特定详细信息,请尝试使用更多选项
ps auxww
可以获取完整的命令行信息。例如,通过运行ps auxww
,我知道命令/usr/local/bin/my program-parameter:8888
正在运行。如何从PowerShell获取相同的信息?我到处搜索,所有的信息都是关于如何在Windows上获取命令行信息的 Ubuntu 18.04 PowerShell上的
你试过ps-a-F了吗。它应该给出你正在寻找的细节
如果需要有关正在运行/所有进程的特定详细信息,请尝试使用更多选项
ps--help-all
或ps--help-output
命令
PS> ps --help output
Usage:
ps [options]
Basic options:
-A, -e all processes
-a all with tty, except session leaders
a all with tty, including other users
-d all except session leaders
-N, --deselect negate selection
r only running processes
T all processes on this terminal
x processes without controlling ttys
Output formats:
-F extra full
-f full-format, including command lines
f, --forest ascii art process tree
-H show process hierarchy
-j jobs format
j BSD job control format
-l long format
l BSD long format
-M, Z add security data (for SELinux)
-O <format> preloaded with default columns
O <format> as -O, with BSD personality
-o, o, --format <format>
user-defined format
s signal format
u user-oriented format
v virtual memory format
X register format
-y do not show flags, show rss vs. addr (used with -l)
--context display security context (for SELinux)
--headers repeat header lines, one per page
--no-headers do not print header at all
--cols, --columns, --width <num>
set screen width
--rows, --lines <num>
set screen height
--help <simple|list|output|threads|misc|all>
display help and exit
For more details see ps(1).
PS>PS——帮助输出
用法:
ps[选项]
基本选择:
-A、 -e所有过程
-a除会议负责人外,所有人都有tty
包含tty的所有用户,包括其他用户
-d除会议领导人外的所有人
-N、 --取消选择否定选择
r仅运行进程
T此终端上的所有进程
不控制TTY的x进程
输出格式:
-F加满
-f完整格式,包括命令行
f、 ——森林ascii艺术过程树
-H显示过程层次结构
-j作业格式
j BSD作业控制格式
-长格式
长格式
-M、 Z添加安全数据(用于SELinux)
-O使用默认列预加载
O作为-O,具有BSD个性
-o、 o,--格式
用户定义格式
s信号格式
面向用户的格式
虚拟内存格式
X寄存器格式
-y不显示标志,显示rss与地址(与-l一起使用)
--上下文显示安全上下文(用于SELinux)
--页眉重复页眉行,每页一行
--没有标题根本不打印标题
--列,--列,--宽度
设置屏幕宽度
--行,--行
设置屏幕高度
--帮助
显示帮助并退出
有关更多详细信息,请参见ps(1)。
除了使用/bin/ls,我不了解自己。这仍然只是ps命令。我认为OP正在使用Get过程寻找答案。