Search code examples
bashterminallinux-mint

open folder from terminal's current directory (Linux Debian)


Is there a command in the terminal to open a folder browser (Nautilus, Caja, etc) at the current directory? I.e.

~/very/long/path/ $ open-folder-command

opens a folder at ~/very/long/path/

Or is there another easy alternative to it?


Solution

  • Use $PWD as Argument to Nautilus

    This works fine for me. YMMV with other file managers.

    mkdir -p /tmp/foo/bar/baz
    cd /tmp/foo/bar/baz
    nautilus "$PWD"