linux shell
来源:互联网 发布:项目 书籍 商务 知乎 编辑:程序博客网 时间:2024/06/07 01:41
1.创建shell脚本
vi test.sh
并编辑
#!/bin/bashecho "hello,I will cd to home"cd
“#!“ 是一个约定的标记,它告诉系统这个脚本需要什么解释器来执行,即使用哪一种 Shell。
echo 命令用于向窗口输出文本。
编辑完保存
2.运行
chmod +x ./test.sh #使其具有运行权限./test.sh #运行脚本
0 0
- Linux Shell
- Linux Shell
- Linux Shell
- Linux Shell
- Linux Shell
- Linux Shell
- linux shell
- Linux Shell
- Linux Shell
- Linux Shell
- Linux Shell
- linux shell
- LINUX SHELL
- Linux Shell
- Linux Shell
- Linux shell
- linux shell
- Linux Shell
- redis 三(数据类型)
- SSM项目---淘淘商城(IDEA开发)
- POJ 2387 Til the Cows Come Home 最短路 Dijstra
- Java内存模型
- [leetcode: Python]290.Word Pattern
- linux shell
- 关于tomcat发布项目404的奇葩问题
- BZOJ3173 [Tjoi2013]最长上升子序列
- 玲珑杯-No Game No Life
- 使用IDEA创建maven父子工程
- 什么是回调函数?
- C#获取系统当前日期时间
- 处理Linux中的^M字符
- Serv-u使用方法