Linux 踩过的坑
夜光说
这个作者很懒,什么都没留下…
展开
-
Linux非root用户进入只有一个$问题
这是因为用户的启动方式是sh造成的,应更改为bash启动。root用户下:cat /etc/passwd将/bin/sh 改为bin/bashvi /etc/passwd按i进入编辑,回车:wq保存退出再次查看:cat /etc/passwd进入非root用户:su es可以正常使用非root用户啦!...原创 2021-01-20 14:16:01 · 630 阅读 · 0 评论 -
Linux修改/etc/profile导致错误:groups: command not found
有一次修改了/etc/profile配置文件方法后,导致bash命令无法用,如执行vi /etc/profile命令结果如下:Command 'vi' is available in '/usr/bin/vi'The command could not be located because '/usr/bin' is not included in the PATH environment variable.vi: command not found使用可视化finallshell工具,修改了/e原创 2021-01-15 10:14:21 · 1870 阅读 · 0 评论