Find the answer to your Linux question:
Results 1 to 8 of 8
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    how to kill shells

    i really need to know how to kill a new shell that ive started, especially if it was started from an x terminal, because the newly started just stay there and use memory

  2. #2
    Linux Guru lakerdonald's Avatar
    Join Date
    Jun 2004
    St. Petersburg, FL
    type in either exit or Ctrl-D

  3. #3
    how can i type "exit" or "Ctrl-D" when ive just closed the xterm window???

  4. $spacer_open
  5. #4
    Linux Engineer adrenaline's Avatar
    Join Date
    Aug 2004
    Seattle, Washington
    ps faux
    this will list the processes with pid numbers in the front. if your user started the shell then you can kill it without being root
    kill <pid> #pid being the number of the process

  6. #5
    but kill [pid] refuses to kill shells, (and some other processes???)

  7. #6
    Linux User
    Join Date
    Jul 2004
    USA, Michigan, Detroit
    Instead of just closing the shells xwindow you should type the command exit at the prompt in the shell window then hit enter and it will exit the shell and close the window.
    Long live the revolution!
    Have a nice day.
    If you want real change vote Libertarian!

  8. #7
    Just Joined!
    Join Date
    Nov 2004
    hey bro... shell actually run every time you boot youre system whether you like it or not ... if yoiu started shell manually then .. you maybe asking how to kill the shell you created .. if ever the shell count exceed in number of three or four... then this means you have extra shell running in background maybe a program is using it or just a runaway process .. you cannot kill the shell that has been run because a program is using it ...or maybe when you start a new shell this new shell overwrite the other shell in process... so you dont have to kill this... does your computer slows down.... on unused running shell dont actually eat much memory.... linux always find away to avoid this to happen or if ever this hapen your system always knows what to do...

  9. #8
    Linux Guru
    Join Date
    Oct 2001
    Täby, Sweden
    That's perfectly correct -- the shell will ignore the TERM signal. Instead, send it a KILL signal: "kill -KILL <pid of the shell>".

    Are you sure that you're looking at the correct shell, though? It could be some legitimate shell that's started by something else.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts