当前位置: 首页> 游戏> 评测 > google官网_成都网络公司排名榜_产品营销方案策划书_汕头seo网络推广服务

google官网_成都网络公司排名榜_产品营销方案策划书_汕头seo网络推广服务

时间:2025/7/11 18:41:39来源:https://blog.csdn.net/DavidsonGong/article/details/144078083 浏览次数:0次
google官网_成都网络公司排名榜_产品营销方案策划书_汕头seo网络推广服务
  1. Directly bash + file name
root@DyanGong:~/27thNov2024# ls -ltri
total 4
67876 -rw-r--r-- 1 root root 28 Nov 27 10:43 hello.sh
root@DyanGong:~/27thNov2024# vim test_1.sh
root@DyanGong:~/27thNov2024# bash
hello.sh   test_1.sh
root@DyanGong:~/27thNov2024# bash test_1.sh
Hello Shell
Wed Nov 27 10:48:04 CST 2024
root
/root/27thNov2024
  1. chmod file, then ./…/…(absolutely file route)filename
root@DyanGong:~/27thNov2024# ls -al
total 16
drwxr-xr-x  2 root root 4096 Nov 27 10:47 .
drwx------ 10 root root 4096 Nov 27 10:47 ..
-rw-r--r--  1 root root   28 Nov 27 10:43 hello.sh
-rw-r--r--  1 root root   48 Nov 27 10:47 test_1.sh
root@DyanGong:~/27thNov2024# chmod a+x test_1.sh
root@DyanGong:~/27thNov2024# ls -al
total 16
drwxr-xr-x  2 root root 4096 Nov 27 10:47 .
drwx------ 10 root root 4096 Nov 27 10:47 ..
-rw-r--r--  1 root root   28 Nov 27 10:43 hello.sh
-rwxr-xr-x  1 root root   48 Nov 27 10:47 test_1.sh
root@DyanGong:~/27thNov2024# cat test_1.sh
#!/bin/bashecho "Hello Shell"
date
whoami
pwd
root@DyanGong:~/27thNov2024# pwd
/root/27thNov2024
root@DyanGong:~/27thNov2024# ./test_1.sh
Hello Shell
Wed Nov 27 11:09:54 CST 2024
root
/root/27thNov2024root@DyanGong:~/27thNov2024# cd /
root@DyanGong:/# ./root/27thNov2024/test_1.sh
Hello Shell
Wed Nov 27 11:18:43 CST 2024
root
/
关键字:google官网_成都网络公司排名榜_产品营销方案策划书_汕头seo网络推广服务

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com

责任编辑: