Ubuntu下面,用nautilus命令可以打开文件管理器。后面可以直接跟一个.打开当前目录,然后在打开的文件管理器中再自由跳转。当然,也可以传目标目录。如果不跟任何参数,则打开Home目录。
flying-bird@flyingbird:~/examples/cpp/read_write_read$ nautilus .
flying-bird@flyingbird:~/examples/cpp/read_write_read$ nautilus --help
Usage:
nautilus [OPTION...] [URI...]
Browse the file system with the file manager
Help Options:
-h, --help Show help options
--help-all Show all help options
--help-gtk Show GTK+ Options
Application Options:
-c, --check Perform a quick set of self-check tests.
--version Show the version of the program.
-g, --geometry=GEOMETRY Create the initial window with the given geometry.
-w, --new-window Always open a new window for browsing specified URIs
-n, --no-default-window Only create windows for explicitly specified URIs.
--no-desktop Never manage the desktop (ignore the GSettings preference).
--force-desktop Always manage the desktop (ignore the GSettings preference).
-q, --quit Quit Nautilus.
-s, --select Select specified URI in parent folder.
--display=DISPLAY X display to use
flying-bird@flyingbird:~/examples/cpp/read_write_read$ nautilus --version
GNOME nautilus 3.10.1
flying-bird@flyingbird:~/examples/cpp/read_write_read$