0

This question already has an answer here:

Yesterday I installed Ubuntu 16.10 (Unity) alongside Windows 10 which was already installed.

I found myself using a terminal a lot, but there is something which kinda bugs me: even if no command is running, if I'm logged in as root (I mean after typing sudo su and then my password) when I want to close the terminal it will prompt me with this

How can I close it without that message popping up? I want it to pop up only if the terminal is executing some command.

marked as duplicate by Kevin Bowen, Eric Carvalho, TheWanderer, David Foerster, muru command-line Feb 5 '17 at 16:07

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Well it is saying that message because sudo su is a process, so I don't know! – Ubuntu User Feb 4 '17 at 12:55
  • 2
    It is executing a command sudo su so its supposed to ask before closing the terminal. Don't wan to see it then do exit then close terminal. – George Udosen Feb 4 '17 at 12:59
4

Something is running. su is running. You can verify if you have a clean terminal with everything closed by typing exit at the prompt.

If you exit out of su, then you can close it without getting the process running on this terminal, prompt.

If a process is running, just keep executing exit until all the processes are closed.

  • Thanks I had no idea it was identifiable as a process – Tommaso Thea Cioni Feb 4 '17 at 17:59

Not the answer you're looking for? Browse other questions tagged or ask your own question.