您现在的位置是:网站首页> 编程资料编程资料
bash scp command not found的解决方法_linux shell_
2023-05-26
491人已围观
简介 bash scp command not found的解决方法_linux shell_
安装了centos6.0,由于选择了最小安装,很多包没有安装,因此一些常用的命令也不支持,如下:
# scp
-bash: scp: command not found
我的解决方法是:在一台运行正常的CentOS 5.6服务器上找到scp所在的包:
##---以下命令在运行正常的CentOS 5.6上执行
复制代码 代码如下:
# which scp
/usr/bin/scp
# rpm -qf /usr/bin/scp
openssh-clients-4.3p2-72.el5
这么看来scp所在的包是openssh-clients了。
在不正常的机器上安装吧:
复制代码 代码如下:
# yum install openssh-clients
或者从光盘上安装
# rpm -ivh libedit-2.11-4.20080712cvs.1.el6.x86_64
# rpm -ivh openssh-clients-5.3p1-20.el6.x86_64
至此,scp命令可以执行了。
注意:以上用到的包名请大家根据自己的情况进行调整。
您可能感兴趣的文章:
相关内容
- linux中mysql备份shell脚本代码_linux shell_
- linux下使用perl获取本机ip的几种方法介绍_linux shell_
- Linux下使用Shell脚本实现ftp的自动上传下载的代码小结_linux shell_
- 神奇的shell命令行输入与输出功能介绍_linux shell_
- 获取两个日期间隔时间的shell脚本代码_linux shell_
- linux shell中 if else以及大于、小于、等于逻辑表达式介绍_linux shell_
- 判断文件是否存在的shell脚本代码_linux shell_
- 用shell命令读取与输出数据的代码_linux shell_
- linux shell命令执行顺序的控制方法_linux shell_
- kill特定进程的shell脚本代码_linux shell_
