문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 마지막 판 양쪽 다음 판 | ||
linux:ls [2014/01/09 14:09] kwon37xi |
linux:ls [2021/04/02 19:06] kwon37xi [파일의 전체 경로 보기] |
||
---|---|---|---|
줄 1: | 줄 1: | ||
====== Linux ls ====== | ====== Linux ls ====== | ||
+ | * [[linux: | ||
+ | * [[linux: | ||
===== ls 컬러 변경 ===== | ===== ls 컬러 변경 ===== | ||
+ | * https:// | ||
* [[http:// | * [[http:// | ||
export LS_COLORS=' | export LS_COLORS=' | ||
줄 6: | 줄 9: | ||
* '' | * '' | ||
# 문서상 파일 이름이 " | # 문서상 파일 이름이 " | ||
- | # Step 1: Pipe the information from Dircolors and save as .dircolors | + | # Step 1: Pipe the information from Dircolors and save as .dir_colors |
dircolors -p > ~/ | dircolors -p > ~/ | ||
# Step 2: Change the contents of .dir_colors | # Step 2: Change the contents of .dir_colors | ||
- | vim .dircolors | + | vim .dir_colors |
# | # | ||
줄 40: | 줄 43: | ||
# Introduce DirColors to the new configuration | # Introduce DirColors to the new configuration | ||
- | dircolors -b ~/.dircolors | + | dircolors -b ~/.dir_colors |
</ | </ | ||
줄 49: | 줄 52: | ||
ls -ltr | ls -ltr | ||
</ | </ | ||
+ | |||
+ | ===== 파일의 전체 경로 보기 ===== | ||
+ | * [[https:// | ||
+ | |||
+ | <code sh> | ||
+ | # current dir의 모든 파일과 디렉토리 | ||
+ | ls -1 |xargs realpath | ||
+ | |||
+ | # 현재 디렉토리의 파일과 링크 | ||
+ | find $PWD -maxdepth 1 -type f,l | ||
+ | |||
+ | # 현재 이하 모든 디렉토리의 모든 파일과 링크 | ||
+ | find $PWD -type f,l | ||
+ | </ | ||
+ |