how to close a window using shell?

Discussion in 'Shell Script' started by sarosh, Aug 28, 2010.

  1. sarosh

    sarosh New Member

    Joined:
    Aug 28, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    hi,
    suppose i have many windows open like two image files, a terminal , a firefox. and using command line i want to exit specifically 1 of these.. how can i do this?
    is there any shell command to do this?
    thanx...
    i am waiting for reply. its urgent!
    m using ubuntu 9.04
     
  2. Prakhar14

    Prakhar14 New Member

    Joined:
    Apr 27, 2011
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    0
    To exit from command line, first you should type jobs
    This command will give you the active jobs in window. The first field represents Job ID.
    Now, to terminate a command type;
    kill %ID
    ID represent Job ID.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice