I understand . means current directory, and * means any string. My question is the following 2 commands have the same result? I would appeciate your help.chown -R joe:staff . chown -R joe:staff *
File name wildcard
command
* expands to all filenames in the current directory, excluding hidden files (whose names start with .).Sochown -R joe:staff *changes the ownership of all non-hidden files and directories in the current directory, and all the contents of all the non-hidden directories in the current directory.chown -R joe:staff .changes the ownership of the current directory and all its contents, including hidden files and directories.They don't have the same result: the first doesn't change the current directory or hidden files in the current directory.