Launch "select file" dialog using a shell script

bash, ubuntu

Solution

Use `zenity`

More reference here: http://library.gnome.org/users/zenity/stable/file-selection.html.en

Problem

In Ubuntu, is it possible to launch a "select file" dialog from the command line? I need to find a command that launches the "select file" dialog (so that I can prompt the user to navigate to a file using a shell script, and then return the file path.)

Original source