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

740516-20190528135409877-603520178.png

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


740516-20190528135659115-1741056402.png

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/


转载于:https://www.cnblogs.com/xgqfrms/p/10936784.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值