I am using the below find command, this is failing:
find / -name abc.log
Below is the output of this command:
find: '/boot/grub2': Permission denied
find: '/boot/loader/entries': Permission denied
find: '/home/cloud-user': Permission denied
find: '/tmp/systemd-private-99c9b57d9e16438b977cf383c6cb7593-chronyd.service-2Xuarl': Permission denied
/tmp/abc.log
Then i run:
echo $?
Output : 1
Why is the output 1 when the command ran and also found an instance of the file?