Red Hat ENTERPRISE LINUX WS 2.1 - Guia de Instalação Página 208

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
Vista de página 207
208 Important Linux features
DONE
INDEX
INDEX
make fila read/write/execute for the owner, read/execute for the group and
execute for others
-rwxr-x--x user group 102 Apr 10 12.20 fila
chmod -R 222 dira
make the directory tree dira, including all files and sub directories, writable
for all users
13.1.5 chown / chgrp
chown /chgrp: change the owner/group of a file or directory. The output of:
ls -l filea or
ls -ld dira shows the result.
change the owner of the file fila to usera
chown usera fila
-r--r--r-- usera system 102 Apr 10 12.20 fila
change the group of the file fila to grpa
chgrp grpa fila
-r--r--r-- usera grpa 102 Apr 10 12.20 fila
change the owner of directory dira to usera
chown usera dira
change the owner of directory tree dira to usera, including all files and subdi-
rectories
chown -R usera dira
change the group of directory tree dira to grpa
chgrp -R grpa dira
Vista de página 207
1 2 ... 203 204 205 206 207 208 209 210 211 212 213 ... 271 272

Comentários a estes Manuais

Sem comentários