문서의 선택한 두 판 사이의 차이를 보여줍니다.
다음 판 | 이전 판 | ||
linux:ls [2013/06/18 17:24] kwon37xi 새로 만듦 |
linux:ls [2021/12/09 13:38] kwon37xi |
||
---|---|---|---|
줄 1: | 줄 1: | ||
====== Linux ls ====== | ====== Linux ls ====== | ||
+ | * [[linux: | ||
+ | * [[linux: | ||
+ | ===== 정렬 ===== | ||
+ | * [[https:// | ||
+ | * '' | ||
- | ===== 날짜 순 정렬 | + | ==== 날짜 순 정렬 ==== |
* '' | * '' | ||
* '' | * '' | ||
- | * <code sh> | + | <code sh> |
ls -ltr | ls -ltr | ||
</ | </ | ||
+ | |||
+ | ===== ls 컬러 변경 ===== | ||
+ | * https:// | ||
+ | * [[http:// | ||
+ | export LS_COLORS=' | ||
+ | </ | ||
+ | * '' | ||
+ | # 문서상 파일 이름이 " | ||
+ | # Step 1: Pipe the information from Dircolors and save as .dir_colors | ||
+ | dircolors -p > ~/ | ||
+ | |||
+ | # 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; | ||
+ | 01;34=Light Blue | ||
+ | 01;35=Pink | ||
+ | 01;36=Light Cyan | ||
+ | 01;37=Light Gray | ||
+ | |||
+ | |||
+ | # Introduce DirColors to the new configuration | ||
+ | dircolors -b ~/ | ||
+ | |||
+ | </ | ||
+ | |||
+ | ===== 파일의 전체 경로 보기 ===== | ||
+ | * [[https:// | ||
+ | |||
+ | <code sh> | ||
+ | # current dir의 모든 파일과 디렉토리 | ||
+ | ls -1 |xargs realpath | ||
+ | |||
+ | # 현재 디렉토리의 파일과 링크 | ||
+ | find $PWD -maxdepth 1 -type f,l | ||
+ | |||
+ | # 현재 이하 모든 디렉토리의 모든 파일과 링크 | ||
+ | find $PWD -type f,l | ||
+ | </ | ||
+ |