![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
linux
tianye1000
这个作者很懒,什么都没留下…
展开
-
linux系统不能使用方向键执行查看历史命令
set -o | grep history If you get "history off" then add this line at the end of your ~/.bashrc: set -o history Next try: echo $HISTFILE echo $HISTSIZE echo $HISTFILESIZE If the first ...原创 2017-06-07 12:56:30 · 6969 阅读 · 0 评论 -
shell脚本报错:-bash: xxx: /bin/sh^M: bad interpreter: No such file or directory
Shell代码 #!/bin/sh echo"testshell" 具体报错信息如下: Shell代码 [root@localhosttest]#./test.sh -bash:./test.sh:/bin/sh^M:badinterpreter:Nosuchfileordirectory 我们可以通过vi编辑器来查看文件的forma...转载 2017-06-21 14:52:39 · 784 阅读 · 0 评论 -
centos7 docker 离线yum源下载及配置
Centos7更换阿里云yum源 备份 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup centos7 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo 或 cur...原创 2019-07-12 12:19:32 · 769 阅读 · 0 评论