문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 | ||
linux:ls [2014/01/09 14:02] kwon37xi |
linux:ls [2021/12/09 13:38] kwon37xi |
||
---|---|---|---|
줄 1: | 줄 1: | ||
====== Linux ls ====== | ====== Linux ls ====== | ||
+ | * [[linux: | ||
+ | * [[linux: | ||
+ | ===== 정렬 ===== | ||
+ | * [[https:// | ||
+ | * '' | ||
+ | |||
+ | ==== 날짜 순 정렬 ==== | ||
+ | * '' | ||
+ | * '' | ||
+ | <code sh> | ||
+ | ls -ltr | ||
+ | </ | ||
+ | |||
===== ls 컬러 변경 ===== | ===== ls 컬러 변경 ===== | ||
+ | * https:// | ||
* [[http:// | * [[http:// | ||
export LS_COLORS=' | export LS_COLORS=' | ||
</ | </ | ||
- | * [[http://www.suse.or.kr/bbs/board.php? | + | * '' |
- | * '' | + | # 문서상 |
- | * '' | + | # 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; | ||
+ | 00;31=Red | ||
+ | 00; | ||
+ | 00; | ||
+ | 00; | ||
+ | 00;35 Magenta | ||
+ | 00; | ||
+ | 00; | ||
+ | |||
+ | 01; | ||
+ | 01;31=Light Red | ||
+ | 01;32=Light green | ||
+ | 01; | ||
+ | 01;34=Light Blue | ||
+ | 01; | ||
+ | 01;36=Light Cyan | ||
+ | 01;37=Light Gray | ||
+ | |||
+ | |||
+ | # Introduce DirColors to the new configuration | ||
+ | dircolors -b ~/.dir_colors | ||
+ | |||
+ | </code> | ||
+ | |||
+ | ===== 파일의 전체 경로 보기 ===== | ||
+ | | ||
- | ===== 날짜 순 정렬 ===== | ||
- | * '' | ||
- | * '' | ||
<code sh> | <code sh> | ||
- | ls -ltr | + | # current dir의 모든 파일과 디렉토리 |
+ | ls -1 |xargs realpath | ||
+ | |||
+ | # 현재 디렉토리의 파일과 링크 | ||
+ | find $PWD -maxdepth 1 -type f,l | ||
+ | |||
+ | # 현재 이하 모든 디렉토리의 모든 파일과 링크 | ||
+ | find $PWD -type f,l | ||
</ | </ | ||
+ |