On Ubuntu 18.04, I have a C++ compiled program MyServer.
top -c shows the "command line" correctly as ./MyServer, but the "command name" with
top is shown as "main".
I wanted to know how to get the command name to be MyServer.
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community