How to create a new terminal window from the command line in Red Hat Linux 5.3

3

I use PuTTY to get to my Red Hat Linux 5.3 workstation from my Windows laptop.

Typically, if I want a new terminal on my Windows 7 workstation from another terminal or mc, I have to type start <ENTER>, and I will see a new terminal window running the default shell.

What is the equivalent command in Red Hat Linux 5.3 (and/or Solaris) to create a new terminal window from the command line? I will be entering this command from the shell prompt or mc's command line.

In Windows, if I want to start another terminal and in that terminal, I want to run a program, I can do "start program.exe arg1 arg2". This will create a new terminal window and runs program.exe in that terminal window. I don't have to create a terminal and then in a separate step run the program. How can I do this in Linux?

anjanbacchu

Posted 2011-05-18T14:13:40.480

Reputation: 885

In Windows, if I want to start another terminal and in that terminal, I want to run a program, I can do "start program.exe arg1 arg2". this will create a new terminal window and runs program.exe in that terminal window. How can I do this in Linux ? – anjanbacchu – 2011-05-18T15:23:49.220

Maybe add this as another question? – slotishtype – 2011-08-01T09:57:59.313

Answers

2

If you're using PuTTY, I'd just duplicate the session.

Remember that PuTTY is a Windows application, and your Linux machine can't make a new Windows application instance.

If you have an X Window server (and you can download XMing XServer for free), you can run a few different terminals, including xterm, gnome-terminal or konsole, etc.

You can also use the same PuTTY window with multiple sessions with screen or tmux.

Rich Homolka

Posted 2011-05-18T14:13:40.480

Reputation: 27 121

In Windows, if I want to start another terminal and in that terminal, I want to run a program, I can do "start program.exe arg1 arg2". this will create a new terminal window and runs program.exe in that terminal window. How can I do this in Linux ? – anjanbacchu – 2011-05-18T15:23:57.720

@anjanbacchu terminal programs take the -e flag for a command

xterm -e program arg1 arg2 should do it – Rich Homolka – 2011-05-18T22:41:13.257

1

Unless you're running a X server on your Windows machine, you can't do this and will have to start a new instance of PuTTY. If you are for some reason running a X server then you can simply call the terminal emulator name followed by a &.

gnome-terminal &

Ignacio Vazquez-Abrams

Posted 2011-05-18T14:13:40.480

Reputation: 100 516

1

screen is your friend.

You can have multiple sessions, each running independently.

You can even detach a screen session, log off and shut down your Windows PC completely, go home and start a putty session from home, and re-connect to the detached screen session which will still be running.

Screen is da boss!

user81794

Posted 2011-05-18T14:13:40.480

Reputation: 11