<출력 색상 변경하기>

 


putty 같은 흰색 테마의 클라이언트로 원격접속해서 사용할 때는 그나마 괜찮지만
일반적인 콘솔로 Linux에서 작업하면 시커먼게 존내 안보이는 상태가 되버리기 때문에
가시성을 위해 출력색상을 변경하는 법을 알아두면 좋다

 

색상 변경 예
~$ LS_COLORS="di=0;33"

 

위와 같은 명령어로 변경해 줄 수 있다

di는 파일 종류, 뒤에 숫자는 텍스트 형식이다

 

파일 종류명
di directory
fi file
ln symbolic link
pi fifo file
so socket file
bd block (buffered) special file
cd character (unbuffered) special file
or symbolic link pointing to a non-existent file (orphan)
mi non-existent file pointed to by a symbolic link (visible when you type ls -l)
ex file which is executable (ie. has 'x' set in permissions)

 

텍스트 형식
0 default color
1 bold
4 underlined
5 flashing test
7 reverse field

 

굉장히 많기 때문에 참고 사이트 남김

텍스트 형식 및 색상표
참고 사이트 https://linuxhint.com/ls_colors_bash/


주의) 출력 색상 변경 후 프로필에 저장하지 않을 경우 종료 후 재진입하면 기본설정으로 돌아온다

+ Recent posts