How to execute linux commands in Java

Video is ready, Click Here to View ×


  1. Could you please let me know how to execute the command in java , i am not sure if below is correct syntax, however i want to execute curl –help on gitbash
    String[] aa={"C:/Program Files/Git/git-bash.exe ","-c","curl –help"};

Leave a Reply

Your email address will not be published.