ls 색깔 의미
- Blue: Directory
- Green: Executable or recognized data file
- Cyan (Sky Blue): Symbolic link file
- Yellow with black background: Device
- Magenta (Pink): Graphic image file
- Red: Archive file
- Red with black background: Broken link
man 에서는 다음과 같이 확인 가능하다.
NORMAL 0 보통텍스
FILE 0 보통파일
DIR 32 디렉토리
LINK 36 심볼릭 링크
ORPHAN undefined 깨진 심볼릭링크
MISSING undefined 사라진 파일
FIFO 31 FIFO
SOCK 33 소켓
BLK 44;37 블록장치
CHR 44;37 문자장치
EXEC 35 실행파일
ISO 6429 color sequences는 세미콜론으로 나뉘어지는 sequences로 구성된다. 대부분 공통적인 코드는 다음과 같다:
0 기본색을 재저장할때
1 밝은 색을 위해
4 언더라인 텍스트를 위해
5 번쩍거리는 텍스트를 위해
30 검은 전경을 위해
31 빨간 전경을 위해
32 녹색 전경을 위해
33 노란(혹은 갈색) 전경을 위해
34 파란 전경을 위해
35 자주색 전경을 위해
36 청록색 전경을 위해
37 하얀색(혹은 회색) 전경을 위해
40 검은 배경을 위해
41 빨간 배경을 위해
42 녹색 전경을 위해
43 노란(혹은 갈색) 배경을 위해
44 파란 배경을 위해
45 자주색 배경을 위해
46 청록색 배경을 위해
47 하얀색(혹은 회색)배경을 위해
참고: https://askubuntu.com/questions/17299/what-do-the-different-colors-mean-in-ls
What do the different colors mean in ls?
What do the different colours in Ubuntu's ls command mean? For example, when I type the ls command in one of my folders, I get one of the files in light green, the other (which is a folder) in blue...
askubuntu.com