List all current processes once with UID, PID, parent PID, start time, and command.
Which command is appropriate?
ps -ef prints all processes once in a System V full listing, including the parent process ID. It does not continuously refresh.
Detailed explanation
top -fIncorrect. top is an interactive continuously updating monitor.
jobs -efIncorrect. jobs is a shell job command and does not use -ef for all processes.
pgrep -efIncorrect. pgrep searches matching process IDs rather than displaying a full listing.
ps -efCorrect. ps -ef produces the requested one-time full process snapshot.
Try it yourself
An example you can run in a temporary verification environment.
ps -ef | headExpected result
process一覧の先頭部分Key points
- ps -ef
- Snapshot
- PPID
Notes
- Environment: procps-ng系ps
- Use a disposable process or test shell when checking lifecycle commands.
- Exact output and option names can vary slightly by distribution and tool version.
Foundation review
Place the operation
ps provides a point-in-time view; top is intended for repeated interactive observation.
Check the side effect
Choose the ps option style deliberately because BSD and System V forms use different syntax conventions.