GVKun编程网logo

Centos出现-bash: unzip: command not found的解决办法(centos unzip命令)

8

如果您想了解Centos出现-bash:unzip:commandnotfound的解决办法和centosunzip命令的知识,那么本篇文章将是您的不二之选。我们将深入剖析Centos出现-bash:

如果您想了解Centos出现-bash: unzip: command not found的解决办法centos unzip命令的知识,那么本篇文章将是您的不二之选。我们将深入剖析Centos出现-bash: unzip: command not found的解决办法的各个方面,并为您解答centos unzip命令的疑在这篇文章中,我们将为您介绍Centos出现-bash: unzip: command not found的解决办法的相关知识,同时也会详细的解释centos unzip命令的运用方法,并给出实际的案例分析,希望能帮助到您!

本文目录一览:

Centos出现-bash: unzip: command not found的解决办法(centos unzip命令)

Centos出现-bash: unzip: command not found的解决办法(centos unzip命令)

利用unzip命令解压缩的时候,出现-bash: 
 
unzip: command not found的错误。
 
unzip——命令没有找到,其原因肯定是没有安装unzip。
 
利用一句命令就可以解决了。
 
命令是:
 
yum install -y unzip zip
 
安装成功后就可以使用unzip命令了。

"command-not-found has crashed" 解决办法 (*unsolved)

bash执行命令时,若命令找不到,就会运行一段command not found程序,可以看到输出foo: command not found提示。
但是如果command not found崩溃,找不到命令时输出就成了Sorry, command-not-found has crashed ...blabla...

解决办法

export LANGUAGE=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
locale-gen en_US.UTF-8
sudo dpkg-reconfigure locales

命令执行后不必退出登录,command not found直接恢复正常。

export:设置环境变量,仅限本次登录有效。
locale-gen:生成需要的locale文件。
dpkg-reconfigure:重新配置一个已经安装的软件包。

本人不求甚解,最后放出上述命令的解释,供有需要者参考。

后续

退出再重新登录时,问题重新出现……

参考

export命令介绍
dpkg-reconfigure命令介绍
关于Locale的介绍
locale-gen命令介绍
askubuntu上关于该问题的解答

说明(适用于本人今后所有文章)

不清楚sf是否允许放参考链接,本人只是想把解决问题过程中查阅的信息一并提供,以免只是传之以鱼。如有不合规定的链接,请通知本人,本人会予以删除。谢谢:-)

-bash: $''\r'': command not found 类问题的解决

-bash: $''\r'': command not found 类问题的解决

格式不兼容造成的,需要dos2unix命令

安装:yum install dos2unix -y

运行dos2unix + 文件名,例如dos2unix /etc/profile

-bash: iostat: command not found 解决办法

-bash: iostat: command not found 解决办法

[root@testhost ~]# iostat
-bash: iostat: command not found

IOSTAT 命令不可用,首先确认 sysstat 包是否安装,sysstat 包中包括 iostat,mpstat,sar,sa

[root@testhost ~]#yum install -y sysstat

安装完成后,再执行 iostat 命令。

 

解释:

avg-cpu 段:
% user: 在用户级别运行所使用的 CPU 的百分比.
% nice: nice 操作所使用的 CPU 的百分比.
% sys: 在系统级别 (kernel) 运行所使用 CPU 的百分比.
% iowait: CPU 等待硬件 I/O 时,所占用 CPU 百分比.
% idle: CPU 空闲时间的百分比.


Device 段:
tps: 每秒钟发送到的 I/O 请求数.
Blk_read /s: 每秒读取的 block 数.
Blk_wrtn/s: 每秒写入的 block 数.
Blk_read:   读入的 block 总数.
Blk_wrtn:  写入的 block 总数.

-bash: ls: command not found 解决办法

-bash: ls: command not found 解决办法


原因:在设置环境变量时,编辑 profile 文件没有写正确,导致在命令行下 ls 等命令不能够识别。可能是在大家写 JAVA_HOME 以及其他环境路径的时候修改了 PATH

解决方案:
 export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

今天关于Centos出现-bash: unzip: command not found的解决办法centos unzip命令的讲解已经结束,谢谢您的阅读,如果想了解更多关于"command-not-found has crashed" 解决办法 (*unsolved)、-bash: $''\r'': command not found 类问题的解决、-bash: iostat: command not found 解决办法、-bash: ls: command not found 解决办法的相关知识,请在本站搜索。

本文标签: