Confirmed on latest Xenial for top, `ps -e` and pgrep: $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu Xenial Xerus (development branch) Release: 16.04 Codename: xenial
$ python3 -c 'print(len("chromium-browser"))' 16 $ pgrep chromium-browser echo $? 1 # exit status code 1 == no processes matched (as per man page for pgrep(1)) $ pgrep chromium-browse 22351 22364 [snip] $ cat /proc/22351/cmdline && echo chromium-browser --enable-pinch $ cat /proc/22351/stat 22351 (chromium-browse) S 1616 1829 1829 0 -1 4194560 37820 20451 701 0 657 236 6 2 20 0 29 0 355501 1262727168 41021 18446744073709551615 94135085649920 94135125690420 140723151897424 140723151896160 140132228684269 0 0 4096 81923 0 0 0 17 2 0 0 64 0 0 94135127791120 94135129570812 94135143915520 140723151902368 140723151902426 140723151902426 140723151904717 $ ps -e | grep chromium 22351 ? 00:00:08 chromium-browse 22364 ? 00:00:00 chromium-browse 22366 ? 00:00:00 chromium-browse 22464 ? 00:00:02 chromium-browse 22469 ? 00:00:00 chromium-browse 22557 ? 00:00:00 chromium-browse $ top -b -n 1 -p 22351 [snip] 22351 foo 20 0 1233132 164084 118164 S 0,0 1,0 0:08.85 chromium-browse related to LP #1174911 'pgrep cuts process names' <https://bugs.launchpad.net/ubuntu/+source/procps/+bug/1174911> -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to procps in Ubuntu. https://bugs.launchpad.net/bugs/295876 Title: top and ps truncate command after 15 chars Status in Procps: Confirmed Status in procps package in Ubuntu: Confirmed Bug description: Binary package hint: procps I guess this is an issue with 'top', and not really Ubuntu related, but... I noticed something hogging my CPU, and top revealed: 15219 root 30 10 109m 104m 4092 R 92 5.2 1:44.15 update- apt-xapi Of course, there is no such process called 'update-apt-xapi'. top truncates the process name to 15 chars (this was in fact 'update- apt-xapian-index' running). Nick To manage notifications about this bug go to: https://bugs.launchpad.net/procps/+bug/295876/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp