Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am having some trouble in starting more then one process in a single terminal window..

like as i have started wvdial by

sudo wvdial

it shows all initiating process details but wont give back

pankaj@N5010:~$ 

until i press ctrl+c to terminate which causes terminate wvdial..

what i want is to start both wvdial and nautilus in same terminal window.Is it possible??

share|improve this question

marked as duplicate by Seth, guntbert, Warren Hill, Eric Carvalho, karel Nov 15 '13 at 3:28

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.

2 Answers 2

up vote 0 down vote accepted

Append the first command with an ampersand & which makes the command run in the background. man bash says:

If a command is terminated by the control operator &, the shell executes the command in the background in a subshell. The shell does not wait for the command to finish, and the return status is 0.

share|improve this answer

Yes you can. Just append the ampersand character (&) at the end of the command. This will allow the program to run as a background job in the shell. Like this:

sudo wvdial &
nautilus

It's worth nothing that you will still see terminal output from the task while it's running in the background.

share|improve this answer

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