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
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
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>/*/*
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us