사용자 도구

사이트 도구


linux:ls

문서의 이전 판입니다!


Linux ls

ls 컬러 변경

  • dircolors 명령을 통한 변경 Linux Toolkits: Changing Color for ls on Bash
    # 문서상 파일 이름이 ".dircolors"로 나와 있는데 ".dir_colors"가 맞음
    # Step 1: Pipe the information from Dircolors and save as .dir_colors
    dircolors -p > ~/.dir_colors
     
    # Step 2: Change the contents of .dir_colors
    vim .dir_colors
     
    #------------------------------------------------
    NORMAL 00 # global default, although everything should be something.
    FILE 00 # normal file
    DIR 01;34 # directory
    .........
    #------------------------------------------------
     
    Color Codes (Foreground):
    00;30=Black
    00;31=Red
    00;32=Green
    00;33=Brown
    00;34=Blue
    00;35 Magenta
    00;36=Cyan
    00;37=White
     
    01;30=Grey
    01;31=Light Red
    01;32=Light green
    01;33=Yellow
    01;34=Light Blue
    01;35=Pink
    01;36=Light Cyan
    01;37=Light Gray
     
     
    # Introduce DirColors to the new configuration
    dircolors -b ~/.dir_colors

날짜 순 정렬

  • -t : 수정 날짜 순 정렬
  • -r : 역순 정렬
ls -ltr
linux/ls.1389244209.txt.gz · 마지막으로 수정됨: 2014/01/09 14:10 저자 kwon37xi