← All commands
Topic hub Services & Processes
Windows Linux Services & Processes Processes

Windows wmic process get processid equivalent in Linux

Displays process IDs together with executable names and complete command lines.

Windows wmic process get processid
Linux equivalents
Debian/Ubuntu same command
ps -eo pid,comm,args
Fedora same command
ps -eo pid,comm,args
Arch same command
ps -eo pid,comm,args

Overview

What this command does

Displays process IDs together with executable names and complete command lines.

Migration tip: Customize ps -o to print exactly the fields needed by a script or troubleshooting session.

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 optionUse
ps -eo pid,comm,argsShow PID, command and arguments
ps -eo ppid,pid,user,stat,commShow parent IDs and states
ps -p 1234 -o pid,etime,argsInspect one process

Distro differences

Debian/Ubuntu vs Fedora vs Arch

This command is the same on Debian/Ubuntu, Fedora and Arch Linux when the relevant tool is installed.

DistributionPackage manager / baseEquivalent commandDifference 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

Related Services & Processes commands