Answers for "change user of a directory in linux"

1

change user of a directory in linux

chown vivek:vivek demo.txt
ls -l demo.txt

#output
-rw-r--r-- 1 vivek vivek 0 Aug 31 05:48 demo.txt
Posted by: Guest on June-29-2021
1

how to change owner of all files in a directory

# Using the '*' wildcard you can include all other files and dirs
# Only us as many wildcards as you have layers in you directory
sudo chown <username:username> <directory_name>/*/*
Posted by: Guest on July-29-2020

Code answers related to "change user of a directory in linux"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language