How to run binary file in Linux

前端 未结 11 1031
执念已碎
执念已碎 2021-02-01 18:15

I have a file called commanKT and want to run it in a Linux terminal. Can someone help by giving the command to run this file? I tried ./commonRT but I

11条回答
  •  伪装坚强ぢ
    2021-02-01 18:38

    The only way that works for me (extracted from here):

    chmod a+x name_of_file.bin
    

    Then run it by writing

    ./name_of_file.bin
    

    If you get a permission error you might have to launch your application with root privileges:

     sudo ./name_of_file.bin
    

提交回复
热议问题