
问题中文乱码rootautodl-container-1139448516-8360e2c7:~# ls0-$\346\250\241\345\236\213\344\270\213\350\275\275-27B-FP8.sh autodl-pub0-$\346\250\241\345\236\213\344\270\213\350\275\275-27B-$\346\211\251\345\256\271\347\241\254\347\233\23010GB.sh autodl-tmp1$\351\224\256\345\220\257\345\212\250-27B-FP8-32GB$\346\230\276\345\255\230.sh miniconda31$\351\224\256\345\220\257\345\212\250-27B-$\345\256\214\346\225\26496GB$\346\230\276\345\255\230.sh modelsAPI$\346\216\250\347\220\206-27B-FP8-32GB$\346\230\276\345\255\230.sh tf-logsAPI$\346\216\250\347\220\206-27B-$\345\256\214\346\225\26496GB$\346\230\276\345\255\230.sh问题原因语言编码locale当前不是UTF‑8导致ls把中文按八进制转义码显示出来了检查是否有 UTF‑8 locallocale -a | grep -E en_US.utf8|zh_CN.utf8如果没有任何输出说明系统没生成对应 locale需要先生成。2.2 生成 en_US.UTF‑8 和 zh_CN.UTF‑8AutoDL 上一般有 sudosudo locale-gen en_US.UTF-8 sudo locale-gen zh_CN.UTF-8 sudo update-locale LANGen_US.UTF-8 # 或 zh_CN.UTF-82.3 写入 shell 配置文件编辑~/.bashrc如果用 zsh 则是~/.zshrc在末尾追加vim ~/.bashrcexport LANGen_US.UTF-8 export LC_ALLen_US.UTF-8然后执行source ~/.bashrc重新加载或新开一个终端。