shell
来源:互联网 发布:centos怎么修改语言 编辑:程序博客网 时间:2024/06/03 21:26
http://www.runoob.com/linux/linux-comm-declare.html
执行第一个hello word实例时,报错:-bash: ./hello.sh: /bin/bash^M: bad interpreter: No such file or directory
是由于编码格式的问题。由于我现在windows将 sh文件编写好了 再上传linux。文件编码是dos 所以将文件格式改成unix即可。
# vi hello.sh
查看文档格式
:set ff?
返回
fileformat=dos
修改文档格式
:set ff=unix
阅读全文
0 0
- shell
- shell
- shell
- shell
- shell
- Shell
- shell
- Shell
- shell
- shell
- SHELL
- Shell
- shell
- shell
- shell
- shell
- shell
- shell
- python元组与列表的相互转换
- PCA的数学原理
- js+php简单实现下载页面中当前显示的表格内容
- bootstrapTable行内编辑
- hdu1513 dp
- shell
- php两张图片动态合成thinkphp实现二维码及文字水印合并拼接到背景图上
- Python进阶—使用lambda创建匿名函数
- 字符串转json数组的解决办法
- select、input等默认样式的改变,包含下拉三角
- Android 悬浮窗权限各机型各系统适配大全
- 使用handbars显示
- 能整除数组个数的数组下表
- 1965: [Ahoi2005]SHUFFLE 洗牌