Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have to write a script that collects user id and PID information, but I don't
know what PID means. Can anyone give me a brief explanation of what PID stands for, thanks.
The PID of what would be the first thing you should
try to find out ;)
And then of course there's friendly commands like cut
and awk that will let you post-process the information
out of ps if the built-in display options don't quite do
what you expect.
man ps
man cut
man awk
for details
Cheers,
Tink
P.S.: And since the question strongly reeks of homework
this is going to be as much support as you get, homework
questions are against our rules. If you run into an actual
problem with any of the commands above feel free to come
back and ask.
pidof is part of the sysinitV package in slackware, and
is in /sbin ... chances are that you can't see it as a normal
user in your distro, either. Have a look in /sbin, or see
whether it works as root.
If it doesn't, use ps and grep, gives you the same info
with slightly more work.
Thanks, I checked in /sbin, and pidof was there, it was one of a few commands that was highlighted a different color, I am not sure what that means. Possibly that command is disabled?
Personally I don't use ls colorisation, and if I did the
meaning of the colours in your set-up might differ from
what my distro provides. The easiest way to find out
would be to try and run it ;}
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.