终端命令的哈希是什么?


-1

我在TerminalEdit中输入了一个Terminal命令,但我不知道终端的哈希,所以我无法改变它。我尝试将其更改为.bash和.rtf,但它们不起作用。帮助Plz ???

Answers:


1

使用TextEdit编写shell脚本或类似时,

  • 确保TextEdit处于计划文本(而不是富文本)模式(检查格式菜单)
  • 使用#!/bin/bash作为第一行
  • chmod +x /path/to/file保存后运行一次
  • 使用/path/to/file(或者,如果它在当前目录中./file),执行它
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.