Nautilus is the file manager for the GNOME desktop. How do I open Nautilus from the Linux or Unix shell prompt?
You can use the gnome-open command to open files and URLs using the GNOME file handler. For example, if you were in the /home/vivek directory, typing the following command would open the file manager:
gnome-open .
Sample outputs:
The . (dot) is your current directory. If you type two dots ( .. ) it would open the parent directory:
gnome-open ..
To open a directory in Nautilus, enter:
## home dir ## gnome-open ~ ## /tmp ## gnome-open /tmp
To open a web page or url:
gnome-open www.cyberciti.biz
To open an document file
gnome-open resume.odf
To open a pdf file:
gnome-open lsst.pdf
To Send an e-mail:
gnome-open mailto:foo@cyberciti.biz
A note about KDE and other *nix desktop users
You can use kde-open or xdg-open to open a file, directory or URL in the user's preferred application. The syntax is same:
kde-open . xdg-open . kde-open 'www.cyberciti.biz' xdg-open 'www.cyberciti.biz
You can also use kfmclient under KDE desktop for opening URLs from the command line. To opens the current directory:
kfmclient exec .
To open the file:
kfmclient exec file:/home/vivek/test.html
To opens the file with firefox:
kfmclient exec file:/var/www/html/docs.en.html Firefox
To open new window with URL:
kfmclient exec ftp://ftp.cyberciti.biz/ kfmclient exec http://www.cyberciti.biz/
You should follow me on twitter here or grab rss feed to keep track of new changes.
Featured Articles:
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop














{ 1 comment… read it below or add one }
Hi thanks for sharing this.
I am getting this error:
Please help to solve this.
Thanks again :)