6.2.8.2 chfile

ファイル属性を変更します。

用途

chfileコマンドは、ファイルの属性を変更します。

構文

chfile file-name --attributes attribute=value[,attribute=value]...

コマンド・オプション

chfileコマンドのオプションは、次のとおりです:

  • file-name: 変更するファイルの名前を指定します。

  • --attributes: 変更する属性を指定します。

    変更可能なファイル属性の詳細を表示するには、describe chfileコマンドを使用します。「リソースと属性の説明」も参照してください。

例6-76 ファイルの変更

次の例では、my-fileという名前のファイルのサイズを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