Hosting News & Commentary Hosting News & Commentary Hosting News & Commentary

822 Part VII: Appendixes chown Syntax: chown [ -fhR ] Owner [ :Group ] { File . . . | Directory. . . } The chown command changes the owner of a file or directory. The value of the Owner parameter can be a user ID or a login name in the /etc/passwd file. Optionally, you also can specify a group. The value of the Group parameter can be a group ID or a group name in the /etc/group file. Only the root user can change the owner of a file. You can change the group of a file only if you are a root user or you own the file. If you own the file but are not a root user, you can change the group only to a group of which you are a member. Table D-3 describes the chown options. TABLE D-3 CHOWN OPTIONS Option Description #NAME? #NAME? the file or directory to which the symbolic link points. -R Descends directories recursively, changing the ownership for each file. When a symbolic link is encountered and the link points to a directory, the ownership of that directory is changed, but the directory is not further traversed. The following example changes the owner of the file to another user: chown bert hisfile.txt cp Syntax: cp [-r] source destination Use the cp command to make an exact copy of a file. The cp command requires at least two arguments. The first argument is the file you want to copy, and the second argument is the location or file name of the new file. If the second argument is

Note: If you are looking for good and high quality web space to host and run your application check Lunarwebhost Unix Web Hosting services

  1. No user reviews yet.


Leave a Reply