How to view the specific files or folder names that are excluded

I have seen a specific log of excluded files in this post, which may be due to different commands or storage. I will try it.