これら2つのコマンドの間に実際の違いはありますか?
/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.
したがって、両方とも同じです。