Usage: chgrp [OPTION]... GROUP FILE...
or: chgrp [OPTION]... --reference=RFILE FILE...
Change the group of each FILE to GROUP.
With --reference, change the group of each FILE to that of RFILE.
-c, --changes like verbose but report only when a change is made
--dereference affect the referent of each symbolic link (this is
the default), rather than the symbolic link itself
-h, --no-dereference affect each symbolic link instead of any referenced
file (useful only on systems that can change the
ownership of a symlink)
--no-preserve-root do not treat `/' specially (the default)
--preserve-root fail to operate recursively on `/'
-f, --silent, --quiet suppress most error messages
--reference=RFILE use RFILE's group rather than specifying a
GROUP value
-R, --recursive 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 この使い方を表示して終了
--version バージョン情報を表示して終了
Examples:
chgrp staff /u Change the group of /u to "staff".
chgrp -hR staff /u Change the group of /u and subfiles to "staff".
Report chgrp bugs to bug-coreutils@gnu.org
GNU coreutils home page:
Usage: chgrp [OPTION]... GROUP FILE...
or: chgrp [OPTION]... --reference=RFILE FILE...
Change the group of each FILE to GROUP.
With --reference, change the group of each FILE to that of RFILE.
-c, --changes like verbose but report only when a change is made
--dereference affect the referent of each symbolic link (this is
the default), rather than the symbolic link itself
-h, --no-dereference affect each symbolic link instead of any referenced
file (useful only on systems that can change the
ownership of a symlink)
--no-preserve-root do not treat `/' specially (the default)
--preserve-root fail to operate recursively on `/'
-f, --silent, --quiet suppress most error messages
--reference=RFILE use RFILE's group rather than specifying a
GROUP value
-R, --recursive 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
Examples:
chgrp staff /u Change the group of /u to "staff".
chgrp -hR staff /u Change the group of /u and subfiles to "staff".
Report chgrp bugs to bug-coreutils@gnu.org
GNU coreutils home page:
CHGRP(1) CHGRP(1) 名前 chgrp - ファイルのグループ所有権を変更する 書式 chgrp [options] group file... POSIX オプション: [-R] GNU オプション (簡略形式): [-cfvR] [--dereference] [--reference=file] [--help] [--version] [--] 説明 chgrp コマンドは指定されたそれぞれの file のグループ所有権を group に変 更する。その指定方法としてグループ名、数値でのグループ ID、もしくは参照 用のファイルを使うことができる。 POSIX オプション -R ディレクトリやそこに含まれるもののグループ所有権を再帰的に変更す る。 (エラーが起こっても処理を続ける。) GNU オプション -c, --changes 実際にグループの変更があった file それぞれについての動作を詳細に 表示する。 --dereference シンボリックリンク自身ではなく、それが指している先を変更する。こ れがデフォルトである。 -f, --silent, --quiet グループを変更できなかったファイルについてのエラーメッセージを出 力しない。 -h, --no-dereference 指している先ではなく、シンボリックリンクそれ自身を変 更 す る 。 lchown (2) システムコールが提供されていない場合、chown は失敗す る。再帰的に辿っているときにシンボリックリンクが見つかり、 か つ --verbose が指定されていない場合、エラーメッセージは表示されない 。 -v, --verbose 全ての file について変更した (もしくはしなかった) という動作を詳 細に表示する。 -R, --recursive ディレクトリやそこに含まれるもののグループ所有権を再帰的に変更す る。 --reference=file 指定されたファイルとディレクトリを file と同じグループに変更する 。 GNU 標準オプション --help 標準出力に使用方法のメッセージを出力して正常終了する。 --version 標準出力にバージョン情報を出力して正常終了する。 -- オプションリストを終了する。 環境変数 変数 LANG, LC_ALL, LC_CTYPE, LC_MESSAGES が通常の意味を持つ。 準拠 POSIX 1003.2 では -R オプションのみを必要としている。その他のオプション を使用すると互換性がないかもしれない。 注意 chown(2) が set-uid, set-gid のビットをリセットするようなシステムにおい ても、これらは保存される。 こ のページでは fileutils-4.1 パッケージでの chgrp コマンドについて説明 している。その他のバージョンでは少し違いがあるかもしれない。修正や追 加 は aeb@cwi.nl, aw@mail1.bet1.puv.fi, ragnar@ragnar-hojland.com 宛てにメ ールで連絡してほしい。プログラムのバグについては bug-fileutils@gnu.org へ報告してほしい。 GNU fileutils 4.1 18 June 2002 CHGRP(1)
CHGRP(1) User Commands CHGRP(1)
NAME
chgrp - change group ownership
SYNOPSIS
chgrp [OPTION]... GROUP FILE...
chgrp [OPTION]... --reference=RFILE FILE...
DESCRIPTION
Change the group of each FILE to GROUP. With --reference, change the
group of each FILE to that of RFILE.
-c, --changes
like verbose but report only when a change is made
--dereference
affect the referent of each symbolic link (this is the default),
rather than the symbolic link itself
-h, --no-dereference
affect each symbolic link instead of any referenced file (useful
only on systems that can change the ownership of a symlink)
--no-preserve-root
do not treat ‘/’ specially (the default)
--preserve-root
fail to operate recursively on ‘/’
-f, --silent, --quiet
suppress most error messages
--reference=RFILE
use RFILE’s group rather than specifying a GROUP value
-R, --recursive
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
EXAMPLES
chgrp staff /u
Change the group of /u to "staff".
chgrp -hR staff /u
Change the group of /u and subfiles to "staff".
AUTHOR
Written by David MacKenzie and Jim Meyering.
REPORTING BUGS
Report chgrp bugs to bug-coreutils@gnu.org
GNU coreutils home page:
コロナウイルスの日ごとの感染者数・死者数をグラフ化してみました。どの国が増加傾向にあり、どの国が終息に向かっているかを視覚化しています。
Copyright(C) linux-cmd.com All Rights Reserved. Author Takayuki Yukawa