The ps -o option allows specifying custom output format by letting you choose exactly which columns to display. You can list specific fields like pid, user, comm, %mem, %cpu after -o to get precisely the output format you need. The -l flag shows long format but doesn't allow custom column selection.