Windows wmic process get processid equivalent in Linux
Displays process IDs together with executable names and complete command lines.
wmic process get processid
ps -eo pid,comm,args
ps -eo pid,comm,args
ps -eo pid,comm,args
Overview
What this command does
On Windows, "wmic process get processid" is used to list process IDs and commands. On Linux, the closest practical mapping shown here is "ps -eo pid,comm,args". Displays process IDs together with executable names and complete command lines. This reference is grouped under Services & Processes → Processes.
Windows → Linux context
What changes when you use this on Linux?
Equivalent task, different tool
Windows wmic process get processid maps to ps -eo pid,comm,args for this task. Treat this as a workflow mapping rather than a character-for-character syntax translation.
Portable across the compared distros
The Debian/Ubuntu, Fedora and Arch rows use the same command in this mapping. Package availability or defaults can still vary, so check the installed tool version when an option behaves differently.
For the broader concept behind this mapping, read Linux services and processes.
Practical tasks
Common use cases
List process IDs and commands
Displays process IDs together with executable names and complete command lines.
ps -eo pid,comm,args
Show PID, command and arguments
ps -eo ppid,pid,user,stat,comm
Show parent IDs and states
ps -p 1234 -o pid,etime,args
Inspect one process
Ready to run
Copyable Linux commands
Review paths, device names, package names and permissions before running any command.
ps -eo pid,comm,args
ps -eo ppid,pid,user,stat,comm
ps -p 1234 -o pid,etime,args
Walkthrough
Examples with explanations
ps -eo pid,comm,args # list PIDs and command lines
ps -eo ppid,pid,user,stat,comm # include parent process and state
ps -p 1234 -o pid,etime,args # inspect one PID
Reference
Common options and variations
| Command or option | Use |
|---|---|
ps -eo pid,comm,args | Show PID, command and arguments |
ps -eo ppid,pid,user,stat,comm | Show parent IDs and states |
ps -p 1234 -o pid,etime,args | Inspect one process |
Distro differences
Debian/Ubuntu vs Fedora vs Arch
Debian/Ubuntu, Fedora and Arch all use "ps -eo pid,comm,args" for this mapping. The command syntax shown here is portable across the three rows, although installed versions and system defaults can still vary.
| Distribution | Package manager / base | Equivalent command | Difference to notice |
|---|---|---|---|
| Debian/Ubuntu | same command | ps -eo pid,comm,args |
Same command on this distribution. |
| Fedora | same command | ps -eo pid,comm,args |
Same command on this distribution. |
| Arch | same command | ps -eo pid,comm,args |
Same command on this distribution. |
Keep learning