How to run binary file in Linux

前端 未结 11 1170
执念已碎
执念已碎 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:26

    To execute a binary or .run file in Linux from the shell, use the dot forward slash friend

     ./binary_file_name
    

    and if it fails say because of permissions, you could try this before executing it

     chmod +x binary_file_name
     # then execute it
     ./binary_file_name
    

    Hope it helps

提交回复
热议问题