关闭→
当前位置:科普经验站>IT科技>linux运行sh文件命令

linux运行sh文件命令

科普经验站 人气:1.64W

1、首先要打开linux操作系统,查看目录sh文件。

linux运行sh文件命令

2、然后给文件添加x权限chmod u+x hello.sh。

linux运行sh文件命令 第2张

3、接着再输入命令./hello,sh或 sh hello.sh。

linux运行sh文件命令 第3张

4、最后就可以执行hello.sh文件了。

linux运行sh文件命令 第4张

TAG标签:#文件 #命令 #linux #运行 #sh #