UTERMINAL
TERMINAL
NEXT
$V1$
PAUSE
PAGETURNER
ENCORE5
ENCORE
BOX
COMMAND
GO
chgrp
SYNTAX
chgrp group file ...
FUNCTION
chgrp changes the group ID of each file to
group. The group may be specified either
as a decimal group id or as a group name.
NOTE:
The specified group id need not be present
in the /etc/group file; however, the
specified group name does.
Only the owner of a file, or a superuser
may change the group ID of a file.
Let us get a long listing for the three files
A, B, and C by typing ls -l A B C.
$PROMPT$
That is correct!
You've got it on the 2nd try.
Good, you understand the concept.
Please type ls -l A B C
Please type ls -l A B C
You will be helped this time.
$PROMPT$
FORGET1
Observe the result on the terminal.
ls -l A B C
crwx------ 2 admin root 192 Apr 16 09:07 A
drwxr-xr-x 1 dave cti 11800 Apr 16 10:43 B
-rw-rw-r-- 1 yori cti 5212 Apr 16 11:33 C
The file A belongs to the group root,
files B and C belong to the cti group.
crwx------ 2 admin root 192 Apr 16 09:07 A
drwxr-xr-x 1 dave cti 11800 Apr 16 10:43 B
-rw-rw-r-- 1 yori cti 5212 Apr 16 11:33 C
Assuming that you are entitled to change
the group of these files, enter the command
to change the group to 250.
$PROMPT$
That is correct!
You've got it on the 2nd try.
Good, you understand the concept.
Please type chgrp 250 A B C
Please type chgrp 250 A B C
I guess I must type this for you:
$PROMPT$
FORGET2
Observe the result on the terminal.
$PROMPT$chgrp 250 A B C
$PROMPT$
Now, let us verify the new groups of the
files by typing: ls -l A B C.
$PROMPT$
That is correct!
You've got it on the 2nd try.
Good, you understand the concept.
Please type ls -l A B C
Please type ls -l A B C
You will be helped this time.
$PROMPT$
FORGET3
Observe the result on the terminal.
ls -l A B C
crwx------ 2 admin 250 192 Apr 16 09:07 A
drwxr-xr-x 1 root 250 11800 Apr 16 10:43 B
-rw-rw-r-- 1 yori 250 5212 Apr 16 11:33 C
As you can see, all three files now belong to the group 250.