문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 | ||
linux:ls [2021/04/02 18:58] kwon37xi |
linux:ls [2021/12/09 13:38] kwon37xi |
||
---|---|---|---|
줄 2: | 줄 2: | ||
* [[linux: | * [[linux: | ||
* [[linux: | * [[linux: | ||
+ | ===== 정렬 ===== | ||
+ | * [[https:// | ||
+ | * '' | ||
+ | |||
+ | ==== 날짜 순 정렬 ==== | ||
+ | * '' | ||
+ | * '' | ||
+ | <code sh> | ||
+ | ls -ltr | ||
+ | </ | ||
+ | |||
===== ls 컬러 변경 ===== | ===== ls 컬러 변경 ===== | ||
* https:// | * https:// | ||
줄 45: | 줄 56: | ||
dircolors -b ~/ | dircolors -b ~/ | ||
- | </ | ||
- | ===== 날짜 순 정렬 ===== | ||
- | * '' | ||
- | * '' | ||
- | <code sh> | ||
- | ls -ltr | ||
</ | </ | ||
줄 57: | 줄 62: | ||
<code sh> | <code sh> | ||
- | # current dir | + | # current dir의 모든 파일과 디렉토리 |
ls -1 |xargs realpath | ls -1 |xargs realpath | ||
- | find $PWD -maxdepth 1 -type f | ||
- | # current and sub dir | + | # 현재 디렉토리의 파일과 링크 |
- | find $PWD -type f | + | find $PWD -maxdepth 1 -type f,l |
+ | |||
+ | # 현재 이하 모든 디렉토리의 모든 파일과 링크 | ||
+ | find $PWD -type f,l | ||
</ | </ | ||