Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-21-2006, 07:40 PM   #1
Registered: Sep 2004
Location: U.S.
Distribution: Mandrake 10.1
Posts: 41

Rep: Reputation: 15
Running a command in a new window

There was a simple way, I thought, of running a command so that it opens in a new xterm window and leaves the original window available to do whatever you want in it. For example, let's say that I am in the /etc directory, and I would like to edit fstab using emacs, so I type:

emacs fstab

Is there something else that I can type in that command line so that I get a new command window with emacs in it, and the old window, which is currently in the /etc directory, is available for me to do what I want with it? This is all in a kde enviroment, using the konsole terminal program. I remember doing this in the past, I just can't seem to remember the command and have been unable to locate it using any search engine or my trusty Linux book. Any help is appreciated, and if I figure this out before someone posts I'll be sure to put it here. Thanks.
Old 08-21-2006, 07:47 PM   #2
Registered: Jul 2005
Location: Brighton, UK
Distribution: Mainly Debian and Mepis, but also Slackware, Arch and Mandriva
Posts: 73

Rep: Reputation: 15
According to

"You can also start a new terminal window from an existing one. Just enter the program's name and an ampersand (for example, xterm &) at the shell prompt."

Hope this helps.

Old 08-21-2006, 07:47 PM   #3
LQ Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 272Reputation: 272Reputation: 272
command & works on things that are gui. Not sure if it will open a new xterm window if needed...

Edit: Beaten to the punch!
Old 08-21-2006, 08:24 PM   #4
Registered: Sep 2004
Location: U.S.
Distribution: Mandrake 10.1
Posts: 41

Original Poster
Rep: Reputation: 15
Thanks a lot. Yes, that was exactly what I was looking for, just couldn't remember that little detail.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Running File in Its Own Command Window jagster936 Linux - Newbie 5 05-20-2006 01:27 AM
Running X-WINDOW remotely consistgd Linux - Software 8 11-12-2004 05:45 AM
bash script - open new window running a command zippity Linux - Newbie 1 07-13-2004 12:16 PM
running windows in a window? luigi6699 Linux - Software 2 05-17-2004 02:04 AM
Running another X window manager mhl Linux - Newbie 4 09-08-2003 05:31 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:07 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration