Vous êtes sur la page 1sur 17

KOVAI KALAIMAGAL COLLEGE OF ARTS AND SCIENCE (ACCREDITED BY NAAC WITH A GRADE)

(AN ISO 9001:2008 CERTIFIED INSTITUTION-AFFILATED TO BHARATHIAR UNIVERSITY) NARASIPURAM POST, COIMBATORE 641109

BHARATIAR UNIVERSITY UGC PRACTICAL EXAMINATION JUNE-2013

DIPLOMA IN NETWORK MANAGEMENT

Name Register Number Course Subject

KOVAI KALAIMAGAL COLLEGE OF ARTS AND SCIENCE (ACCREDITED BY NAAC WITH A GRADE)
(AN ISO 9001:2008 CERTIFIED INSTITUTION-AFFILATED TO BHARATHIAR UNIVERSITY) NARASIPURAM POST, COIMBATORE 641109

CERTIFICATE

This

is

to

certify

that

this

bonafide

record

of

work

done

by__________________ of

reg no______________________ submitted to

Bharathiar University UGC Practical Examination held during the year June 2013

Staff-In-Charge

Head of the Department

Practical examination held on_______________

Internal Examiner

External Examiner

INDEX

S.NO 1

DATE

CONTENTS

PAGE .NO

SIGN

2 3 4

5 6

COPYING A FILE

clear echo copy a file echo---------------- ls echoEnter source file name: read src echoEnter target file name: read targ cp$src$targ ls

Output

Copy a file:

---------------Abc ddd.sh nand.sh as.sh copy.sh ms.sh bout.sh As,sh bas.sh b.sh a.sh n ab.sh Scopy.sh dcopy.sh remol.sh kd.sh Billa.sh cau.sh

Enter source file name: Cp1 Enter target file name: Cp2 Abc ddd.sh nand.sh as.sh copy.sh ms.sh bout.sh As,sh bas.sh b.sh a.sh n ab.sh Scopy.sh dcopy.sh remol.sh kd.sh Billa.sh cau.sh [exam14@linuxsrv `]$

FINDING FILE ACCESS PERMISSION

clear echoAccess permission echo-------------------------- echo echoEnter source file: read file chmod u+w $file chmod u+r $file ls

Output

ACCESS PERMISSION

-------------------------------Enter the source file name: Cp1 Total 356 -rw-rw-r1 exam14@exam14 27 2009-05-02 10:35abc -rw-rw-r1 exam14@exam14 27 2009-05-04 11:44chat -rw-rw-r1 exam14@exam14 27 2008-05-06 12:35remove.sh -rw-rw-r1 exam14@exam14 27 2008-05-07 1:55long.sh -rw-rw-r1 exam14@exam14 27 2008-05-09 11:09copy.sh -rw-rw-r1 exam14@exam14 27 2008-05-08 1:05past.sh -rw-rw-r1 exam14@exam14 27 2007-05-08 11:35dgb.sh -rw-rw-r1 exam14@exam14 27 2007-05-08 1:35mmm.sh -rw-rw-r1 exam14@exam14 27 2007-05-08 2:35azzz.sh -rw-rw-r1 exam14@exam14 27 2006-05-06 12:55nand.sh -rw-rw-r1 exam14@exam14 27 2006-05-03 10:00kavi.sh -rw-rw-r1 exam14@exam14 27 2006-05-01 10:03ban.sh -rw-rw-r1 exam14@exam14 27 2005-05-01 4:35rrr

CHATTING

clear echochatting echo------------ echo/t program to chat:/c echo/t Enter the login name to chat:/c read log write $log echo

Output

Enter the login name to chat:test 1 Hai Hello

REMOVING A FILE

clear echoRemoving a file echoFile name read file rm.$file echoFile was removed ls

Output

Removing a file

---------------------File name:cp2 File was removed Abc a.sh ai.sh nand.sh san.sh Copy.sh c.sh cl.sh remove.sh Als.sh bd.sh pgm.sh zzz.sh hh.sh aa.sh bb.sh cc.sh [exam14@linuxsrv `]$

CHANGING THE PASSWORD

clear echochanging the password echo-------------------------------- password

Output

[exam142linuxsrv `]$password changing password for user exam14. changing password for exam14. (current)UNIX password: new UNIX password: retype new UNIX password: password: all authentication tokens updated successfully. [exam14@linuxsrv `]

FINDING IP ADDRESS

clear echo IP address echo---------------- echoFinding the password echo /sbin/ifconfig Echo

Output

[exam14@linuxsrv `]$sh ip IP ADDRESS --------------------FINDING THE IP ADDRESS Echo link encap:Ethernet HWaddr 00:19:D1:96:46:D6 inet addr:192.168.70.101 Bcast:192:168.70.255 mask:255:255:255:0 inet6 addr:fe80::219:d1ff:fe96:46d6/64 scope:link UP BROADCAST RUNNING MULTICAST MTU:1500 metric:1 RX packets:

LINE, WORD AND CHARACTER CHECKING

clear echoLine word & character checking echo-------------------------------------------- echoEnter the file name: read f1 if[!F$f1] then echoFile name does not exit: exit fi 11=cat $fi/wc-1 w=cat $fi/wc-w c=cat $fi/wc-c echo echoTotal lines:$ 11 echoTotal words:$w echoTotal character:$c read

Output

Enter the file name:a.sh Total lines:20 Total words:87 Total character:408