我有一个脚本写好了(基本上是Ubuntu终端的命令),存在一个文件中。是的,这段代码以“”开头。
I have a script written (which are basically the commands for the terminal for Ubuntu) on a file. Yes, the code starts with
#!/bin/bash
如何通过双击来运行此脚本?虽然可以使用终端运行,但我想通过桌面使其更加易于访问。
我只是试图模仿 Windows 上的 *.bat 文件。Windows 上的 *.bat 文件包含一系列在命令提示符上可操作的脚本,并且只需双击即可执行。