I was wondering what the arguments were for pgrep
to make it act only on the current user. -u
makes me provide names, I don't know the name of the current user, I just know that I need current user only.
Thanks
ps
I was wondering what the arguments were for pgrep
to make it act only on the current user. -u
makes me provide names, I don't know the name of the current user, I just know that I need current user only.
Thanks
Best Answer
You can use a UID or a name, as you can see in
man pgrep
:If you don't know either, just use command substitution: