You are on page 1of 15

Q1.

Create a partion of 5 MB

Add a hard disk from memory

1
2
3
4
Now login as root user for partioning the HDD

5
fdisk -l to know the disk partioning

press m for help

6
press n for new partition

press p for primary extended

7
enter partition number

enter first cylinder else press enter with default

8
enter partition size i.e +5M(mb) in this case

now press w for writing

9
10
mount command to mount the partition we have created

11
fdisk -l to check the partition is completed

Q2. Implement the following command

date - to know the current date

12
whoami - to know who is the user

grep -

13
mkdir - to make directory

rmdir - to remove directory

14
15

You might also like