2025年3月4日星期二

linux切换为非root用户时,使用方向键,出现乱码,用户不显示路径等问题,解决方法

 在/etc/passwd 中,需要

test:x:1001:1001::/home/ang:/bin/bash

仿照root格式,将其修改为。即在::中间添加用户名,将上面内容修改成如下:

test:x:1001:1001:test:/home/ang:/bin/bash

上面方法是解决:用户不显示路径问题

方向键乱码,是后面是sh:/bin/sh导致的,需要改为/bin/bash

没有评论:

发表评论

安装 PaddleOCR的方法

  安装飞桨版本:https://www.paddlepaddle.org.cn/install/quick?docurl=/documentation/docs/zh/develop/install/pip/windows-pip.html 命令:  python -m pip...