当前位置:科普知识站>IT科技>

linux下运行脚本的步骤

IT科技 阅读(1.37W)

1、打开linux系统,在linux的桌面的空白处右击。

linux下运行脚本的步骤

2、在弹出的下拉选项里,点击打开终端。

linux下运行脚本的步骤 第2张

3、执行脚本需要有执行限,在终端窗口中输入chmod u+x file.sh命令。

linux下运行脚本的步骤 第3张

4、输入bash file.sh  命令,回车后即可运行脚本。

linux下运行脚本的步骤 第4张