Linux - Newbie This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
10-26-2007, 09:08 AM
|
#1
|
Member
Registered: Oct 2007
Posts: 39
Rep:
|
Finding PID
Hey, I'm trying to follow your Tutorial on setting up Samba.
http://www.linuxquestions.org/linux/...nd_running_NOW
I'm at the part where its telling me to restart the inetd by typing the command:
kill -1 inetd_PID
It says to get the PID of the process inetd from my process list,
How do I find out what the PID is?
Thanks
|
|
|
10-26-2007, 09:10 AM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
run "pidof inetd" or read the output of "ps aux". note that only (afaik) slack and debian use inetd still. all others would use xinted.
|
|
|
10-26-2007, 09:13 AM
|
#3
|
Member
Registered: Oct 2007
Posts: 39
Original Poster
Rep:
|
I ran the first command, "pidofinetd" and nothing happend.
But then I ran the 2nd one, "ps aux" and a long list of processes came up.
I saw "ps aux" on the list, was that it?
|
|
|
10-26-2007, 09:56 AM
|
#4
|
LQ Guru
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509
|
Quote:
Originally Posted by ohswrestler2009
I ran the first command, "pidof inetd" and nothing happend.
|
If you did not get any number, maybe a process called inetd does not exist. Following the note from acid_kewpie maybe you have xinetd instead. Anyway, which distribution are you running on?
Quote:
But then I ran the 2nd one, "ps aux" and a long list of processes came up. I saw "ps aux" on the list, was that it?
|
To extract only the information you're interested in you can pipe the output to grep, e.g.
Code:
ps aux | grep inetd
Indeed the ps command gives the status of all the (hundreds) of processes running on your system, but the output can be filtered by the grep command or - better - by other options to the ps command itself, as for
See man ps for details.
|
|
|
10-26-2007, 12:24 PM
|
#5
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
if you ran "pidofinetd" then blatantly nothign will happen as that's not a real command, unlike what i said which was "pidof inetd"
|
|
|
All times are GMT -5. The time now is 09:49 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|