Thursday, September 4, 2008

SYA710 - Lab 0

1. What is your full name?
Tak Ngai CHAN

2. What is the output in steps 3 and 8?

----------------------------------------------------
Disk /dev/sda: 10.2 GB, 10200547328 bytes
255 heads, 63 sectors/track, 1240 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0008edf2

Device Boot Start End Blocks Id System
/dev/sda1 * 1 1181 9486351 83 Linux
/dev/sda2 1182 1240 473917+ 82 Linux swap / Solaris

----------------------------------------------------

3. What is the purpose of the sudo command?
to do with a command as a root, but the user has to be sudoers list.

4. What is the purpose of the minus sign (-) when using the su command?
to sign in as root with security

5. Explain how you deleted the partition table with fdisk.
since i'm gonna delete all partition, i just use "d", then type the partition number and do it backward from 3 to 1.

6. What is the purpose of the partprobe command?
to let the kernel knows that the file system has been changed

7. Write the complete mail command you would use to email a copy of lab00 to your LEARN account from MATRIX.

mail -s "lab0-email" tnchan@learn.senecac.on.ca < lab00.txt

8. What is the function of the -s option to the mail command?
to put a subject for this e-mail

-s Specify subject on command line (only the first argument after the
-s flag is used as a subject; be careful to quote subjects contain-
ing spaces.)

No comments: