- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: process id 0
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2004 01:48 AM
09-13-2004 01:48 AM
i'm having 2 doubt.
1.what's the function for pid 0?(i think pid1 is init process id,but init parent id shows 0)
2.how to find background process?
Kindly gudie me.
Thanks&Regards
S.Muthu
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2004 01:56 AM
09-13-2004 01:56 AM
Re: process id 0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2004 01:57 AM
09-13-2004 01:57 AM
Re: process id 0
It's the swapper. If you want to see it execute:
ps -ef|grep 0|more
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2004 02:02 AM
09-13-2004 02:02 AM
SolutionBill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2004 02:08 AM
09-13-2004 02:08 AM
Re: process id 0
It is the special process which started at bootup and create init process.
2. We can identify the background process as,
jobs command.
Examaple:
sleep 100&
# jobs
It will give all the process there.
You can foreground to background and vice versa using bg and fg shell command.
See ksh man page for jobs part
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2004 03:06 AM
09-13-2004 03:06 AM
Re: process id 0
ps -fp 0
The -p option allows you to list one or more process IDs. grep and ps don't produce clean results (there are a lot of "0" characters in ps -ef). ps actually has MANY useful options including -u
alias ps="UNIX95= /usr/bin/ps"
(don't export UNIX95= as it affects certain programs and libraries, possibly changing results) To see the hierarchical relationship of all processes:
UNIX95= ps -efH
To find all POSIX shell processes:
UNIX95= ps -fC sh
MUCH more accurate than grep.
Bill Hassell, sysadmin