xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

Linux & terminal color & command line color

Linux & terminal color & command line color

how to change Linux terminal color

https://askubuntu.com/questions/558280/changing-colour-of-text-and-background-of-terminal
https://askubuntu.com/a/558422

# 92: Light Green
# 107: White (don't use with light foreground)

$ echo -e "\e[1;92;107m"

ls colors

https://linuxhint.com/ls_colors_bash/

$ ls colors

$  echo $LS_COLORS


$ dircolors -b >> .bashrc
$ vim ~/.bashrc
$ source ~/.bashrc

https://unix.stackexchange.com/questions/148/colorizing-your-terminal-and-shell-environment

https://unix.stackexchange.com/questions/474502/how-to-set-the-background-color-of-the-linux-console-screen

bash shell script


#!/bin/bash
for((i=16; i<256; i++)); do
    printf "\e[48;5;${i}m%03d" $i;
    printf '\e[0m';
    [ ! $((($i - 15) % 6)) -eq 0 ] && printf ' ' || printf '\n'
done

https://askubuntu.com/questions/558280/changing-colour-of-text-and-background-of-terminal


Adblock detected 😱

https://www.cyberciti.biz/faq/bash-shell-change-the-color-of-my-shell-prompt-under-linux-or-unix/

https://www.tecmint.com/customize-bash-colors-terminal-prompt-linux/

refs



©xgqfrms 2012-2021

www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!

原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!


posted @ 2019-05-28 13:47  xgqfrms  阅读(441)  评论(2编辑  收藏  举报