IGNOU - Indira Gandhi National Open University, IGNOU Papers, IGNOU Assignments, IGNOU Results, University, Books, MBA, MCA, Exams, Delhi, India, Course, BCA, Bsc, Msc
 
Google
 
Home IGNOU Papers IGNOU Assignments IGNOU Students Forum IGNOU Articles Indian Education     Registration Login
Indira Gandhi National Open University IGNOU Indira Gandhi National Open University
IGNOU Latest Assignments
IGNOU BCA Assignments MCA 2009
IGNOU BCA Assignments MCA 2008
IGNOU BCA Assignments MCA 2007
IGNOU BCA Assignments MCA 2006
IGNOU Latest Assignments
IGNOU BCA Assignments IGNOU BCA Assignments
IGNOU BCA Assignments IGNOU MCA Assignments
IGNOU MBA Assignmants IGNOU MBA Assignments

IGNOU > IGNOU Assignments > MCA > MCA 2009 Assignments >Laboratory Course

IGNOU MCA Assignments

PART-I: MCS-041
Question 1 a) To kill a particular process with a PID.

Ans.
Unix assign a unique number to every process running in the memory. This
number is called process ID or simply PID. The PIDs start with 0 and run unto a
maximum of 32767.
To kill a process we must first note the PID of the process to be killed using the
ps command. e.g.
$ cat employee.dat | grep ‘Nagpur’ | sort > output.dat &
6173
$
If the above background process is to be killed we must execute the following
command
$ kill 6173
6173 Terminated.


(b) To append the contents of file2 after the contents of the file1 and redirect them to a new file3.

Ans:
$ cat file1 file2 > file3


(c) To print the first difference between any two given files.

Ans:
cmp :- Compares two files, and if they differ, tells the first byte and line number
where they differ.
We can use the `cmp' command to show the offsets and line numbers where two
files differ. `cmp' can also show all the characters that differ between the two
files, side by side.
SYNTAX
cmp options... FromFile [ToFile]
cmp file1 file2


PREVIOUSINDEXNEXT

Indira Gandhi National Open University   Indira Gandhi National Open University

HOME  |   ABOUT US  |  GUEST BOOK | TERMS OF SERVICE | PRIVACY POLICY | CONTACT US

© 2003-2012, IGNOUGuess.com

Website Designing, Website Development, Search Engine Promotion, Web Hosting By: DreamzSop Advertising Private Limited.