[LINUX] Owner change (memo)

Change the owner for each directory

chown


$ chown -h -R user[:group name]Folder name

The options are as follows. | -c |If the ownership changes, the details will be displayed. | -f |Do not display an error message. | -h |If the specified file is a symbolic link, only the symbolic link will change ownership. Use this option if you want to change ownership of system files and directories in bulk. | -R |Recursively changes the ownership of the specified directory and the files and directories under that directory. | -v |View the details of the change of ownership.-c is only when changed.

See below https://webkaru.net/linux/chown-command/

Recommended Posts

Owner change (memo)
gzip memo
Pandas memo
HackerRank memo
Python memo
python memo
graphene memo
Flask memo
pyenv memo
pytest memo
sed memo
Install Memo
BeautifulSoup4 memo
networkx memo
python memo
tomcat memo
command memo
Generator memo.
Python memo
SSH memo
Change hostname change
[Linux] Change of authority, owner, owning group
Command memo
Memo: rtl8812
pandas memo
Python memo
Pycharm memo
Python memo