I have a Java application in which I need to "reveal" a file to the user (i.e. open the containing folder of the file in an explorer and highlight the file). I have configured it to do so in both Windows and Mac OSX, but I have not been able to find a terminal command to do so on Linux/Ubuntu operating systems.
The below batch/terminal commands are the Windows and Mac equivalents of what I am looking for.
Windows:
Explorer /select,filename
Mac:
open -R filename