运行当前目录下指定的可执行文件

  1. 操作系统: macOS Mojave 10.14.5;
  2. 操作环境: 终端;
  3. 在当前目录下, 有一个可执行文件sqicommand.out, 想要使用命令行执行此文件;
  • 正确方式
./sqicommand.out
  • 错误方式
// 终端会提示: `command not found: a.out`
sqicommand.out
发布了89 篇原创文章 · 获赞 81 · 访问量 5万+

猜你喜欢

转载自blog.csdn.net/qfeung/article/details/94641129