1. 파일명 검색
$find [/path/to/root] -name '*.py' [-ls] [-type d]
*path를 쓰지 않을 경우 현재 디렉토리에서 검색
*-ls를 붙일 경우 ls 형식으로 출력됨
*-type d 는 디렉토리를 검색할때 사용
[출처]http://mwultong.blogspot.com/2006/10/find-linux-file-find-command.html
'Programming' 카테고리의 다른 글
[linux] bash에서 계산하기, bash calculation (0) | 2017.08.04 |
---|---|
[linux] 간단한 vim조작법 (0) | 2017.08.04 |
[linux] bash ls 색상 바꾸기 (0) | 2017.08.04 |
[linux] ssh 서버 접속 및 scp로 파일 전송 (0) | 2017.08.04 |
executable file 만들기 (0) | 2017.08.03 |