User's manual. Section 1.

CH(1): change file attributes


USAGE

        usage: ch [-D] {attr value}
            -D: debug
        

DESCRIPTION

ch changes zx attributes for files.

The fake attribute uids can be used to change both uid and gid. The attribute mode admits as a value the forms +rwx and -rwx to add or remove those bits.

The value for the size attribute admits a trailing k, m, or g to indicate a size expressed as an integral number of Kibibytes, Mibibytes, or Gibibytes.

EXAMPLES

Add read permission to all files within the current directory:

        ; lf , | ch mode +r
        

Create a file with 1M of zeros:

        ; eco -n >file
        ; lf file | ch size 1m
        

SOURCE

  • /zx/sys/src/clive/cmd/ch

SEE ALSO

  • dir(3) for a description of attributes.


User's manual. Section 1.