chown
Linux · Users and permissions · available in the simulator
What it does
Change file owner and group.
Syntax
chown [opciones] usuario[:grupo] archivo...
Options and parameters
-ROperate recursively on files and directories.
chown -R ana:ana /home/anaUSER:GRUPOChange owner and group.
-vOutput a diagnostic for every file processed.
--referenceUse the owner and group of reference file.
Usage examples
sudo chown ana archivo.txtsudo chown ana:devs archivo.txtsudo chown -R ana carpeta/chown user archivochown -R user:grupo proyecto/chown -R ana:ana /home/ana
Notes and common mistakes
- Requires administrative privileges.