How do I open a program from the terminal in a separate window. For example I can run vim by typing vim on the terminal, but how would I have it open in its own window (using the terminal of course)?
-
ALLurGroceries Vegan Vermin Super Moderator
If you're talking about gnome-terminal, there is no way that I know of to do that. There is no key combination or special command to open something in a new window that I know of. You'd need to open a new window with Ctrl+Shift+N (by default) and type the new command that you want in its own window.
-
-
ALLurGroceries Vegan Vermin Super Moderator
That's because it's a gnome app
At least you found what you wanted, there's no general way to do what you asked AFAIK.
Edit: Wait. I'm an idiot.
Code:gnome-terminal -e gnome-terminal
-
-
ALLurGroceries Vegan Vermin Super Moderator
Yeah with gnome-terminal -e the command has to be interactive, otherwise the window will open and close. But in your case if you wanted to run vim, you could just do
Code:gnome-terminal -e vim
-
This might be a dumb question, but does every Linux program/application have a bin file? I remember somewhere that all the programs are stored somewhere like the usr/share/bin. Why don't I just create a symbolic link to that program with a custom name and just launch it from the terminal.
Kind of like what this guy did with firefox http://linuxtrends.com/adding-real-firefox-to-debian-lenny/ -
ALLurGroceries Vegan Vermin Super Moderator
That's just an old convention of Unix and *nix-like operating systems.. an executable has to go somewhere, and if you put it in your home directory nobody else will have permission to use it except for root. /usr/bin is always in your path by default, which is where most things are. I'm not really sure why you'd need a symbolic link for something, unless you have to type the full name of the program. In that case a better solution would to be adding it to your path by adding a line to ~/.bashrc or ~/.bash_profile
Code:PATH=$PATH:/path/to/program
-
If you're in the GUI and running the terminal, you can use gedit file and it will launch gedit. Is that what you mean? It's a pretty handy feature.
Quick question for the pros.
Discussion in 'Linux Compatibility and Software' started by graycolor, Sep 1, 2010.