Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to do this? For example if I run "gedit tifatul.txt" via the command line, my terminal becomes blocked and I can't enter other command in this terminal before I quit gedit. Can I start a program (like gedit) without blocking the terminal? In windows I think this can be done like "start notepad tifatul.txt"

share|improve this question
What do you mean by blocked. – Pedro Diniz Apr 28 '13 at 15:32
@PedroDiniz meaning I can't type another command to the terminal while gedit is running. If you have windows, try the difference between running notepad (blocked) and start notepad (not blocked) – TifatulS Apr 28 '13 at 15:33
up vote 20 down vote accepted

Just add & at the end of the command. This makes the new process to run in background and you can continue using your terminal. For example: gedit new_file.txt &

share|improve this answer
works for me. Thanks! – TifatulS Apr 28 '13 at 15:37
By the way, do you know any documentation regarding this behaviour? Is it only for gedit? – TifatulS Apr 28 '13 at 15:38
This feature of background process is provided by the shell, so it is not working only for gedit but for any command you run on shell. – Daniel Yuste Aroca Apr 28 '13 at 15:53
yeah, thanks for the answer. I was gonna accept but the system requires me to wait another couple of minutes – TifatulS Apr 28 '13 at 16:01
Accepted and upvoted :) By the way what is this feature called? – TifatulS Apr 28 '13 at 16:03

I would like to recommend you nohup gedit filename &. Simply gedit filename &, you're bearing the risk to accidentally close the terminal and lose your edit. If you don't like nohup.out being created each time, just redirect the output:

nohup gedit filename > /dev/null &
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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