Results 1 to 13 of 13

Thread: Unix

  1. #1
    Junior Member
    Join Date
    Apr 2007
    Answers
    1

    Smile Unix

    How can i know details about the processes running in Unix and what is the use of fork command in Unix.


  2. #2
    Contributing Member
    Join Date
    Apr 2007
    Answers
    58

    Re: Unix

    use the command 'ps' or 'ps -A' to view all processes. fork is the system call to start new process in unix.

    Regards,
    Anoop :)
    If its useful, dont forget to [COLOR="Red"]THANK[/COLOR] me :cool:

  3. #3
    Junior Member
    Join Date
    Jun 2008
    Answers
    2

    Re: Unix

    you also can do a top to see what process is taking up the most CPU usage.

    also ps -aef |grep (PID)
    to find the process..


  4. #4
    Junior Member
    Join Date
    Jun 2008
    Answers
    20

    Re: Unix

    PS always required before you kill the process,
    so it is a very important command in Unix.
    Ex- kill ' process ID'


  5. #5
    Junior Member
    Join Date
    Nov 2008
    Answers
    1

    Re: Unix

    Is there any command to make recovery boot tape to restore to another machine


  6. #6
    Junior Member
    Join Date
    Dec 2008
    Answers
    10

    Re: Unix

    Quote Originally Posted by jageesh View Post
    How can i know details about the processes running in Unix and what is the use of fork command in Unix.
    Ans:-

    1> ps ax (or -ax) | grep "PID" ==>> details about process

    2> By using fork() system call only we can create child process

    Thanks,
    -Amaresh



  7. #7
    Junior Member
    Join Date
    Jan 2009
    Answers
    8

    Re: Unix

    1) ps -aef |grep (PID)

    2) fork command are mainly use for the creating the process and
    syntax for creating the fork is p_fork(int id)........

    and there is a P_join command is for killing the child process
    how to know the parent process ?
    while parent process id always 0.....
    we can use more than fork in our program.....ok


  8. #8

    Re: Unix

    i hv written one script for kill many process in one shot..

    #!/usr/bin/ksh -x
    while (( $# >=1 ))
    do
    kill -9 $1
    print "Process has been killed; "$1
    shift
    done

    Last edited by Mritunjay Singh; 01-21-2009 at 07:42 AM. Reason: Speed up the kill process

  9. #9

    Re: Unix

    how to know all the commands in unix


  10. #10
    Junior Member
    Join Date
    Feb 2009
    Answers
    2

    Re: Unix

    plz go to /user/bin dir


  11. #11
    Contributing Member
    Join Date
    Dec 2008
    Answers
    76

    Re: Unix

    To know about all the commands in unix..
    Refer this site Part*II*Section 1: Commands

    One more way..
    Just hold the Tab key for a while it will asks for possibilities:Say Y
    You will get the list of commands.


  12. #12
    Junior Member
    Join Date
    Mar 2009
    Answers
    1

    Re: Unix

    Quote Originally Posted by jageesh View Post
    How can i know details about the processes running in Unix and what is the use of fork command in Unix.
    Hi,
    TOP and ps -ef are the commands to check the the processes which are running on a machine.. and TOP gives how much resources, each process is taking on system...

    and fork is user to create some child processes.


  13. #13
    Junior Member
    Join Date
    Mar 2009
    Answers
    1

    Re: Unix

    . What is shell? What its purpose. Explain the different shells of UNIX


  14.  Sponsored Ads
    Ad


     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact