永发信息网

怎么改linux下file为executable

答案:3  悬赏:50  手机版
解决时间 2021-03-08 03:12
  • 提问者网友:刺鸟
  • 2021-03-07 20:55
怎么改linux下file为executable
最佳答案
  • 五星知识达人网友:野味小生
  • 2021-03-07 21:17
chmod修改文件的属性。
文件的属性包括,用户(user)、用户组(group)、其他(other),并且每个对应的组都有三个属性,即读(R)、写(W)、执行(X)。
所以要对文件是可执行的,就必须对用户添加执行权限。
chmod +x file,对文件加("+")上执行权限即可。
全部回答
  • 1楼网友:大漠
  • 2021-03-07 23:24
chmod +x /path/to/file
  • 2楼网友:人间朝暮
  • 2021-03-07 21:51
first, did you correctly compile the c program? like: gcc -g your.c -o aaa once you finish compiling the program, use below command to gdb it: gdb aaa or if you start gdb w/o specifying the program `aaa', you can input `file aaa' in the gdb shell. then, you can set break point, run the program, etc.
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯