izzykiefer
New Member
Hello Everyone,
I was just wondering if there is a way in linux command-line to associate a file extension to be executed by a previously configured program .
For Example,
Associate all *.jar files to run by Java program.
So instead of typing java -jar /home/izyy/myprogram.jar
Can we just associate that file in commandline somewhere in the config so bash recognizes that extension and chooses java to execute that file.
so just typing /home/izzy/myprogram.jar would execute on its own..
I was just wondering if there is a way in linux command-line to associate a file extension to be executed by a previously configured program .
For Example,
Associate all *.jar files to run by Java program.
So instead of typing java -jar /home/izyy/myprogram.jar
Can we just associate that file in commandline somewhere in the config so bash recognizes that extension and chooses java to execute that file.
so just typing /home/izzy/myprogram.jar would execute on its own..
Last edited: