1.首先执行make busybox-menuconfig 2.进入coreutils 3.找到ls下的Allow use of color to identify file types将其选中 4.退出并重新编译buildroot 5.成功以后将/OK3568-linux-source/buildroot/output/OK3568/build/busybox-1.27.2/busybox把开发板下/bin/目录下的busybox替换,这时候执行busybox ls应该就已经有颜色了。但是为了使用方便我们需要重定向一下。 6.去/etc/profile.d/写一个shell脚本,内容如下: 7.保存退出后,给与可执行权限chmod +x colorls.sh 8.重启后执行ls就是彩色的了。 |
|小黑屋|
飞凌嵌入式
( 冀ICP备12004394号-1 )
GMT+8, 2025-5-19 21:28
Powered by Discuz! X3.4
© 2001-2013 Comsenz Inc.