문서의 선택한 두 판 사이의 차이를 보여줍니다.
다음 판 | 이전 판 | ||
linux:realpath [2021/03/06 14:37] kwon37xi 만듦 |
linux:realpath [2024/02/22 08:47] (현재) kwon37xi |
||
---|---|---|---|
줄 2: | 줄 2: | ||
* [[https:// | * [[https:// | ||
* 파일의 절대 경로 출력 | * 파일의 절대 경로 출력 | ||
+ | * file real path | ||
+ | <code sh> | ||
+ | # symlink 가 아닌 실제 경로 출력 | ||
+ | realpath < | ||
+ | |||
+ | # 그냥 해당 파일의 절대 경로 출력 symlink | ||
+ | realpath -s < | ||
+ | </ | ||
+ | ====== ls 결과 파일들의 절대 경로 ====== | ||
+ | <code sh> | ||
+ | ls * | xargs realpath | ||
+ | </ | ||