SOLUTION ASSIGNMENT - 5

snottysurfsideΔιακομιστές

9 Δεκ 2013 (πριν από 3 χρόνια και 8 μήνες)

193 εμφανίσεις


SOLUTION
ASSIGNMENT

-

5


Name:








Roll No.:


1.

Install Linux in your system.

Make suitable partitions for /boot, / and /users. You
can use Fedora 10 or any other distribution you like.
Write down all the main
steps you have followed.



See Linux Insta
llation PPT.



2.

Login
to the Linux S
ystem
, using
root

user. Go to the text mode and f
ind the
present
d
irectory
.


/root (the home directory of root user)



3.

Write the
/

directory structure
.

Give details upto one level only.



bin etc lib64 misc opt

sbin sys users

boot home lost+found mnt proc selinux tftpboot usr

dev lib media net root srv tmp var




4.

Write a few commands available in /bin and /sbin directory
.

Can you see the
difference in the type of comma
nds given in /bin and /sbin?



/bin: rm, mkdir, chmod, chown

/sbin: ifup, ifdown, route


/bin contains the commands used by the users and /sbin contains the commands
used in system administration.



5.

Create
a new d
irectory

test


in
your home
directory
.

Wri
te the
owner, group and
access
permissions of test directory
.


drwxr
-
xr
-
x 2 navi

users

4096 Mar 4 14:54 test



owner: navi


group: users


permissions: 755 (755 is the default permission for a directory)


6.

Create a te
x
t file called sidbi. Write the owner, g
roup and access permissions of
sidbi file.


vi sidbi

ls

l sidbi


-
rw
-
r
--
r
--

1 navi users 0 Mar 4 14:56 sidbi



owner: navi


group: users


permissions: 644 (644 is the default permission for a file)




7.

Find the inode number of file sidbi (
mention how f
ound it
)
.


ls

li

sidbi



37290543
-
rw
-
r
--
r
--

1 navi users 0 Mar 4 14:56 sidbi




8.

Copy the file sidbi to
sidbi1
.
Find the inode number of file sidbi
1
.


ls

li sidbi1


37290449
-
rw
-
r
--
r
--

1 navi users 0 Mar 4 15:01 sidbi1



9.

Move the file sidbi to sidbi2
.
Find the inode number of file sidbi2
.


ls

li sidbi2



37290543
-
rw
-
r
--
r
--

1 saikat users 0 Mar 4 14:56 sidbi2


ls

li sidbi


ls: sidbi: No such file or directory



10.

The location of kernel files in Unix File System is /boot and by looking at the
kernel fil
e, write the kernel version you are using in the s
ystem
.



ls /boot


config
-
2.6.18
-
53.el5 memtest86+
-
1.65 vmlinuz
-
2.6.18
-
53.el5

grub symvers
-
2.6.18
-
53.el5.gz

initrd
-
2.6.18
-
53.el5.img System.map
-
2.6.18
-
53.el5



linux ker
nel version is 2.6.18
-
53