tree命令在Mac终端中文文件名显示异常

想要给一个朋友发自己硬盘里电子书资源列表,于是想到了tree命令。

安装后一试,

居然是这个样子!!!

A5C34B7A-E320-4EF5-AE1D-B236392E4B55

最先想到的是编码错误,于是百度『linux tree 乱码』,尝试若干种解决方法,并没有什么卵用!

无意中发现了这篇文章http://wwdd23.github.io/2015/01/09/mac-tree-chinese-display-error.html,终于解决了问题。

只需要加一个参数『-N』。

4315FF7E-7125-4F58-874A-153795587850

终端不支持xterm-256color

在R6300v2的Tomato固件中使用nano和screen时出现不支持xterm-256color的情况,错误提示如下:
nano error: Error opening terminal: xterm-256color
screen error: Cannot find termcap entry for ‘xterm-256color’.
解决方案:
Quick fix: run TERM=xterm screen instead of screen.
参考资料: