"Find"의 두 판 사이의 차이

ph
이동: 둘러보기, 검색
잔글
잔글
2번째 줄: 2번째 줄:
 
일단 file * | grep executable 이 제일 간단함. find명령으로는
 
일단 file * | grep executable 이 제일 간단함. find명령으로는
 
  find . -depth 1 -perm -u+x ! -type d
 
  find . -depth 1 -perm -u+x ! -type d
 +
symbolic link까지 찾는다는게 문제. ! -type l 로 거를 수 있으나 ln의 source file이 executable일 수 있음.

2011년 5월 19일 (목) 19:29 판

  • 모든 실행파일 찾기

일단 file * | grep executable 이 제일 간단함. find명령으로는

find . -depth 1 -perm -u+x ! -type d

symbolic link까지 찾는다는게 문제. ! -type l 로 거를 수 있으나 ln의 source file이 executable일 수 있음.