There are a quite a few mistakes on this site :D
And however they have generated the questions needs a bit of work, things like - and "" are not handled correctly ....
Correct Answer: BD
B is correct because it specifies user of 'root' with -u.
D is correct because it matches 'real user ID' with uid of 0 (which I assume is the default.)
What is the real user ID?
Who you really are (the person who owns the proess).
A unique number for a user in the system.
What is pgrep?
Look at running processes and lists the process ID to STDOUT.
For example:
pgrep -u root sshd
Will only list the process ID's that are owned by root (user).
Example 2:
pgrep -u user -l
Will list the process ID and name used by 'user'.
-c count
-u user
-l list process name as will as process ID
B&D get the point. Verified :)
(To whom is validating our comments... Please tell whoever may care, to do his/ her the f job and do correct the tests: Who wants to purchase anything full of mistakes? TY xD )
-U makes sense, but -f does not
-U, --uid uid,...
Only match processes whose real user ID is listed. Either the
numerical or symbolical value may be used.
-f, --full
The pattern is normally only matched against the process name.
When -f is set, the full command line is used.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
linder
Highly Voted 2 years, 10 months agowvdw1962
1 year, 2 months agocast7omadrid1
2 years, 10 months agomikebd
Highly Voted 2 years, 8 months agoLollosbrollo
Most Recent 8 months, 2 weeks agoLazylinux
10 months, 3 weeks agoanhcq
1 year, 3 months agoiwkno6
1 year, 7 months agoCuriousLinuxCat
1 year, 7 months agoBodescu
1 year, 9 months agopenguinx64
2 years agoMalvada
2 years, 3 months ago