[SOLVED] How to achieve the effect of double clicking on the folder, from the command line ?
Linux - NewbieThis 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!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
How to achieve the effect of double clicking on the folder, from the command line ?
How can I open a folder in a window from the command line. I don't want to list the contents of the folder by the "ls" command, but want to open the folder through the command line, like it opens when we double click on the folder.
Thanks. Can you give me the command in Fedora. The above works in Ubuntu, but not in Fedora.
Please, tell us which Desktop manager (KDE, GNOME, XFCE...) and which file manager (Nautilus, Dolphin, Konqueror...) are you using. Moreover what is the error message? Telling that something doesn't work will not give any clue about the actual problem.
xdg-open detects the running environment (KDE, GNOME or XFCE) and calls the appropriate *-open program, which in turn evaluates MIME type settings for that desktop environment and runs the program which is associated with the document's type. Directories should be associated with the standard file manager by default.
Which package provides /usr/bin/xdg-open depends on your distro, in gentoo it is "x11-misc/xdg-utils".
I didn't know about the xdg-utils package. I've tried your command and it works, except for some minor (?) errors as:
$ xdg-open /path/to/directory
<unknown program name>(21133)/ ClientApp::doIt: Creating ClientApp
/usr/bin/xdg-open: line 322: test: : integer expression expected
/usr/bin/xdg-open: line 323: test: : integer expression expected
/usr/bin/xdg-open: line 324: test: : integer expression expected
these are mainly due to the fact that it refers to KDE version 3, whereas some commands in KDE 4 has been renamed (for example kde4-config instead of kde-config). Anyway it correctly opens a usable Dolphin window.