Page 192 - DCAP602_NETWORK_OPERATING_SYSTEMS_I
P. 192

Network Operating Systems-I




                    notes          operate on files and directories recursively
                                   -v

                                   --verbose
                                   output a diagnostic for every file processed
                                   The following options modify how a hierarchy is traversed when the –R option is also specified.
                                   If more than one is specified, only the final one takes effect.

                                   -H
                                    if a command line argument is a symbolic link to a directory, traverse it
                                   -L
                                   traverse every symbolic link to a directory encountered
                                   -P

                                   do not traverse any symbolic links (default)
                                   --help
                                   display this help and exit
                                   --version

                                   output version information and exit




                                      Task     Describe the syntax of changing the group.


                                   10.3.5 change mode

                                   The  chmod  (‘change  mode’)  command  is  used  to  change  the  modes  (access  permissions)
                                   associated with a file. The change is specified in the form:
                                   bash$ chmod modes file

                                   A mode is a three-item sequence which represents who, operation and permission.
                                   who is one of:
                                   1.   u user — the owner of the file
                                   2.   g group — the group to which the owner belongs

                                   3.   others— everyone else
                                   4.   a all — user, group and others
                                   Operation is one of:
                                   1.   + add the specified permission
                                   2.   - subtract the specified permission

                                   3.   = assign the specified permission, ignoring whatever may have been set before.
                                   Permission is specified by one or more of:
                                   1.   r read





          186                              LoveLy professionaL university
   187   188   189   190   191   192   193   194   195   196   197