카테고리 없음

how to change font color in Ubuntu terminal

Learever 2023. 2. 16. 12:44

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

 

nano ~/.bashrc

 

if [ "$color_prompt" = yes ]; then
    PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;32m\]\w\[\033[00m\]\$ '
else
    PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '

 

32 부분 바꿈.

 

Also,

add this line at the end.  1;33 means bold;yellow

LS_COLORS=$LS_COLORS:'di=0;33:di=01;33' ; export LS_COLORS