문서의 이전 판입니다!
파일 검색
Find Command
확장자 명으로 검색
전체 하드 디스크에서 검색
명령어 : find / -name '*.확장자'
[root@localhost ~]# find / -name '*.c' /usr/lib/firmware/isci/create_fw.c /usr/share/doc/systemd/sd-readahead.c /usr/share/doc/ppp-2.4.5/scripts/chatchat/chatchat.c
현재 경로에서 디스크 검색
명령어 : find -name '*.확장자'
[root@localhost ~]# find -name '*.c' ./sample.c
검색 시 해당 파일이 없는 상태에서는 문구조차 나오지 않는다.
ex :
[root@localhost ~]# find -name '*.c
[root@localhost ~]#
파일 명으로 검색
유저 명으로 검색
Grep Command
로그인하면 댓글을 남길 수 있습니다.