문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 | ||
linux:ls [2014/01/09 14:06] 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:// | ||
- | * ''/ | ||
- | * '' | ||
* '' | * '' | ||
- | # Step 1: Pipe the information from Dircolors and save as .dircolors | + | # 문서상 파일 이름이 " |
- | dircolors -p > ~/.dircolors | + | # Step 1: Pipe the information from Dircolors and save as .dir_colors |
+ | dircolors -p > ~/.dir_colors | ||
- | # Step 2: Change the contents of .dircolors | + | # Step 2: Change the contents of .dir_colors |
- | vim .dircolors | + | vim .dir_colors |
# | # | ||
줄 42: | 줄 54: | ||
# Introduce DirColors to the new configuration | # Introduce DirColors to the new configuration | ||
- | dircolors -b ~/.dircolors | + | dircolors -b ~/.dir_colors |
</ | </ | ||
- | ===== 날짜 순 정렬 | + | |
- | * '' | + | ===== 파일의 전체 경로 보기 |
- | * '' | + | * [[https:// |
<code sh> | <code sh> | ||
- | ls -ltr | + | # current dir의 모든 파일과 디렉토리 |
+ | ls -1 |xargs realpath | ||
+ | |||
+ | # 현재 디렉토리의 파일과 링크 | ||
+ | find $PWD -maxdepth 1 -type f,l | ||
+ | |||
+ | # 현재 이하 모든 디렉토리의 모든 파일과 링크 | ||
+ | find $PWD -type f,l | ||
</ | </ | ||
+ |