linux下解決ctrl+l 清屏失效

bind -x '"\C-l": clear'

把这个写到/etc/profile或者/etc/bash.bashrc里头

#example
echo 'bind -x '"\C-l": clear'' >> /etc/profile
source /etc/profile

#如果执行以上命令还未生效那么你应该安装readline库

你可能感兴趣的:(linux)