UTERMINAL
TERMINAL
NEXT
$V1$
$V1$
PAUSE
ENCORE5
ENCORE
BOX
COMMAND
GO
chown
SYNTAX
chown owner file ...
FUNCTION
chown - changes the ownership of the
of the files to owner.
NOTES:
Only the owner or a superuser may change
a file's owner or group ID.
The command
chown its *
makes its the owner of all files in the directory.
The command
chown david file1 file2
makes the user david the owner of files file1 and file2.
Long directory listing practice, 1.8.3.0.4
Please enter the command to print a long listing of files in
the current directory:
$PROMPT$
That is correct!
You've got it on the 2nd try.
Good, you understand the concept.
Please use ls with the -l option.
Please type ls -l
I guess I must type this for you:
$PROMPT$
FORGET1
Observe the result on the terminal!
ls -l
total 12
-rw-r--r-- 1 demo 640 Nov 07 12:17 file1
-rwxr--r-- 1 demo 402 Nov 01 15:34 file2
-rw------- 1 demo 1402 Nov 09 20:57 file3
-rw-r----- 1 demo 749 Sep 27 16:43 file4
-rwxr-xr-x 1 demo 2452 Nov 02 09:12 demofile1
$PROMPT$
Note that demo owns all of the files!
Using "chown" command practice, - 1.8.3.0.5
Let us use the command chown to make klm the owner of the
files whose names begin with file. Remember that file* means
all files beginning with the letters file
$PROMPT$
That is correct!
You've got it on the 2nd try.
Good, you understand the concept.
Please type chown klm file*
Please type chown klm file*
I guess I must type this for you:
$PROMPT$
FORGET2
Observe the result on the terminal!
chown klm file*
$PROMPT$
Long directory listing for verification of change of ownership, - 1.8.3.0.5
Now verify that indeed the file owner has been changed
by typing issuing the appropriate command.
That is correct!
You've got it on the 2nd try.
Good, you understand the concept.
Please use ls with the -l option.
Please type ls -l
I guess I must type this for you:
$PROMPT$
FORGET3
ls -l
Observe the result on the terminal!
total 12
-rwxr-r-x 1 klm 640 Nov 07 12:17 file1
-rw-r----x 1 klm 402 Nov 01 15:34 file2
-rwxr----- 1 klm 1402 Nov 09 20:57 file3
-rw------- 1 klm 749 Sep 27 16:43 file4
-rw----r-- 1 demo 2452 Nov 02 09:12 demofile1
$PROMPT$
Note that the owner of all files whose names begin
with file has been changed to klm, while the
owner of the demofile1 remained unchanged!