LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 09-21-2009, 03:28 AM   #1
pucicu
LQ Newbie
 
Registered: Sep 2009
Posts: 2

Rep: Reputation: 0
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
 
Old 09-21-2009, 06:03 AM   #2
archShade
Member
 
Registered: Mar 2006
Location: Delft NL
Distribution: Debian; Slackware; windows 7
Posts: 218

Rep: Reputation: 53
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'
 
Old 10-06-2009, 08:18 AM   #3
pucicu
LQ Newbie
 
Registered: Sep 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by archShade View Post
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.
 
  


Reply


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
script using "/usr/bin/cat error" produces "cannot open" in cron Dcrusoe Programming 6 07-22-2009 04:30 PM
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 11:18 PM
LXer: Merging "Open Source" and "Free Software" LXer Syndicated Linux News 2 08-08-2007 05:27 AM
Can you explain the difference between "Free Software (GNU)" and "Open Source"? vharishankar General 5 03-03-2005 10:40 AM
"X-MS" cant open because "x-Multimedia System" cant access files at "smb&qu ponchy5 Linux - Networking 0 03-30-2004 12:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:49 AM.

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