Linux

shell script 색상 변경

chbae 2023. 4. 18. 14:26
728x90
반응형

shell script에서 색깔 변경하는 방법이다.

Color Table

Color Foreground Background
black 30 40
red 31 41
green 32 42
yellow 33 43
blue 34 44
magenta 35 45
cyan 36 46
white 37 47

Usage

$ echo -ne "\033[31mRED\033[0m"

Reference

728x90

'Linux' 카테고리의 다른 글

gcc compiler - 2부 (마지막)  (2) 2023.04.18
gcc compiler - 1부  (0) 2023.04.18
tmux (terminal multiplexer)  (0) 2023.04.18
tig  (0) 2023.04.18
vi Command (명령어)  (0) 2023.04.18