4 ms·
Looking for files in the article is completely broken. To look for a file named syslog.conf, you need to say find -name syslog.conf otherwise find will no
by tspiteri 16y ago
Looking for files in the article is completely broken. To look for a file named syslog.conf, you need to say
find -name syslog.conf
otherwise find will not look for that filename in all subdirectories.
So the shown
find /etc/*.conf
is only doing the equivalent of
ls /etc/*.conf
unless there is a directory the name of which ends in ".conf", in which case all its contents will be listed recursively. The required find command is:
find /etc -name \*.conf
And what "find / syslog.conf" is doing is to list all files and directories in /, going down subdirectories recursively, and list syslog.conf in the current directory. What should really be used is:
find / -name syslog.conf
which returns something like:
/etc/syslog.conf
- Sapient 16y agoYou are right, the commands in the article definitely don't produce the results which are claimed.