kali bash: xxxxx: command not found

查询了网上大多数出现问题的解决方法,大致分为几类

1.没有安装
问题:bash: leafpad: command not found
解决: apt inatll leafpad

2,切换root,但是没有将环境带入
问题:bash: service: command not found
解决: su - root
注意:su 后面是一个空格,横线后面也是一个空格,千万不能省略.
3,添加环境
https://blog.csdn.net/weixin_43726152/article/details/104356947
4.有的系统没有这个命令,我们可以不用该命令,使用其他命令实现相同功能
service-------->systemctl
systemctl真香:https://man.linuxde.net/systemctl
service命令:https://man.linuxde.net/service
service --status-all 显示所有服务的状态

参考:
https://blog.csdn.net/zqtsx/article/details/9345291
https://blog.csdn.net/weixin_43726152/article/details/104356947

猜你喜欢

转载自blog.csdn.net/luminous_you/article/details/109509906