Display specific fields for a specific process

wmic

  • Interactive shell for detailed information about running processes.
    More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/wmic>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

wmic process where processid={{pid}} get {{name,commandline}}

click the source code to copy install wmic on any operating system with command-not-found.com