6.2.8.2 chfile
Change file attributes.
Purpose
The chfile
command changes attributes of a file.
Syntax
chfile file-name --attributes attribute=value[,attribute=value]...
Command Options
The options for the chfile
command are:
-
file-name: Specifies the name of the file you are changing.
-
--attributes
: Specifies attributes to change.Use the
describe chfile
command to see details about the file attributes you can change. See also Describing Resources and Attributes.
Examples
Example 6-74 Change a File
The following example shows changing the size of the file named my-file
to 100 KB.
@my-data/> chfile my-file --attributes size=100k
File altered.
@my-data/> ls -l
Total 1
100.0k 29 Jun 21:58 my-file
Parent topic: File Management