Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Change username to a valid user name, and try again.
Merely checks for that username and accumulates the first field (size). This is (probably) not what you would expect "size" to represent - see the manpage.
Look at output of the first part on it's own.
ps -eo size,pid,user,cmd
Since you just need the size and user, how about:
ps -eo size,user
Sometimes when an output on the left hand side of a pipe is blank, it's because of an error on the right hand side, such as a missing or aliased command.
Also, what does "ps --version" return? I've seen similar one-liners using ls & awk that didn't work out right when I tried them because of a small difference in the output such as how recent dates were printed.