LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   the "open" commend from OS X (https://www.linuxquestions.org/questions/linux-newbie-8/the-open-commend-from-os-x-756687/)

pucicu 09-21-2009 02:28 AM

the "open" commend from OS X
 
Dear all,

in OS X I like the shell command "open" (in the man page it is noted that it would be a BSD command). This command opens files and directories by the default application. I would like to know whether there is a similar simple command I can use in Linux.

Thanks!
Pucicu

archShade 09-21-2009 05:03 AM

You could try gnome-open if your running gnome or xdg-open if not. I'm sure there's a KDE equivalent but I don't know what it is.

These are slightly clumsy so you could alias the command to something else. Open seems to be out because it used for legacy for openvt. You could use a right hand square bracket ']' which is dead easy to type.

Code:

alias ]='gnome-open'

pucicu 10-06-2009 07:18 AM

Quote:

Originally Posted by archShade (Post 3691411)
You could try gnome-open if your running gnome or xdg-open if not. I'm sure there's a KDE equivalent but I don't know what it is.

These are slightly clumsy so you could alias the command to something else. Open seems to be out because it used for legacy for openvt. You could use a right hand square bracket ']' which is dead easy to type.

Code:

alias ]='gnome-open'

Thanks so much! I'm now using gnome-open.


All times are GMT -5. The time now is 10:01 AM.