Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
Tags
- MINUS
- Generic
- map
- Service
- union
- Swift
- collection
- vuex
- CLASS
- Interface
- mongoose
- class component
- enum
- lifecycle
- docker
- animation
- elementAt
- ConstraintLayout
- Foreign Key
- function
- react native
- recyclerview
- Filter
- ReactNative
- docker-compose
- Kotlin
- AWS
- LiveData
- list
- 생명주기
Archives
- Today
- Total
개발 일기
find ? 본문
리눅스 find에서는 원하는 조건의 파일 , 디렉터리를 검색할수 있습니다.
[예시]
$ find .
현재 디렉터리에 있는 파일을 검색합니다. ( 숨겨진 파일 , 하위 디렉터리도 포함 )
$ find /example
특정 디렉터리에 있는 파일을 검색합니다. (ex : example)
$ find ./example/ -name "READ*"
찾고자 하는 파일 이름을 지정할 수 있습니다.
$ find ./example -type d
// -type d 을 작성하게 되면 디렉터리만 검색합니다.
$ find . -empty
빈파일을 검색합니다.
$ find ./example -maxdepth 2
하위 디렉터리에 검색 깊이를 설정할수 있습니다.
$ find . -newer main.go
main.go 파일보다 최근에 변경된 파일을 검색합니다.
$ find . -empty -exec ls -l {} \;
검색한 파일로 부가적인 작업을 진행 할 수 있습니다.
Comments