Yes, you can change the ownership of multiple files at once using the chown command by listing the files separated by spaces.
Example:
To change the ownership of multiple files, you can use:
sudo chown new_owner file1.txt file2.txt file3.txt
Using Wildcards:
You can also use wildcards to change ownership for multiple files that match a pattern. For example:
sudo chown new_owner *.txt
This command changes the ownership of all .txt files in the current directory.
Summary:
- List files directly:
sudo chown new_owner file1.txt file2.txt - Use wildcards for patterns:
sudo chown new_owner *.txt
If you have more questions or need further assistance, feel free to ask!
