CentOS7下-bash: nano: command not found

由于安装的是纯净版系统,运行nano命令是提示没有找到该命令,以下是解决方法,用root权限的用户运行以下命令安装nano:

yum install nano

遇到询问时一路点y即可。

安装好后运行:nano a.txt,如果该文件不存在就会创建一个。

编辑好了可以按CTRL+O保存文件,按CTRL+X退出,按CTRL+W查找内容

类似的还有netstat commmand not found

yum install net-tools

  

原文地址:https://www.cnblogs.com/foxting/p/8000284.html