Debian/Ubuntu: 적절한 파일 조회/검색의 차이점

Debian/Ubuntu: 적절한 파일 조회/검색의 차이점

이 두 명령 사이에 실제 차이점이 있습니까?

/home/pkaramol/Desktop
$ sudo apt-file search logrotate.conf
logrotate: /etc/logrotate.conf
logrotate: /usr/share/man/man5/logrotate.conf.5.gz
petitboot: /etc/logrotate.d/petitboot/logrotate.conf
rsync: /usr/share/doc/rsync/examples/logrotate.conf.rsync
unicorn: /usr/share/doc/unicorn/examples/logrotate.conf

/home/pkaramol/Desktop
$ sudo apt-file find logrotate.conf
logrotate: /etc/logrotate.conf
logrotate: /usr/share/man/man5/logrotate.conf.5.gz
petitboot: /etc/logrotate.d/petitboot/logrotate.conf
rsync: /usr/share/doc/rsync/examples/logrotate.conf.rsync
unicorn: /usr/share/doc/unicorn/examples/logrotate.conf
/home/pkaramol/Desktop/centos_7

도움말에 따르면:

검색|찾기 패키지에서 파일 검색

답변1

에서 man apt-file:

search

       Search in which package a file is included. A list of all packages
       containing the pattern pattern is returned.

       Since Contents files does not contain directories, the pattern must
       match (part of a) file name.

       By default, the search action interprets its pattern as if
       --substring-match was specified.

그리고 find

Alias for search.

따라서 둘 다 동일합니다.

관련 정보