Linux Programming and Data Mining Lab Notes

1.

Write a Shell script that accepts a filename, starting and ending line numbers as arguments and displays all the lines between the given line numbers.

Read
2.

Write a Shell script that deletes all lines containing a specified word in one or more files supplied as arguments to it.

Read
3.

Write a Shell script that displays list of all the files in the current directory to which the user has read, Write and execute permissions.

Read
4.

Write a Shell script that receives any number of file names as arguments checks if every argument supplied is a file or a directory and reports accordingly. Whenever the argument is a file, the number of lines on it is also reported.

Read
5.

Write a Shell script that accepts a list of file names as its arguments, counts and reports the occurrence of each word that is present in the first argument file on other argument files.

Read
6.

Write a Shell script to list all of the directory files in a directory.

Read
7.

Write a Shell script to find factorial of a given integer.

Read
8.

Write a awk script to find the number of characters, words and lines in a file.

Read
9.

Write a C Program that makes a copy of a file using standard I/O and system calls.

Read
10.

Write in C the following Unix commands using system calls A). cat B). ls C). mv

Read
11.

Write a Program that takes one or more file/directory names as command line input and reports the following information on the file. A). File type B). Number of links. C). Time of last access. D). Read,Write and Execute permissions.

Read
12.

Write a C program to emulate the Unix ls-l command.

Read
13.

Write a C program to list for every file in a directory, its inode number and file name.

Read
14.

Write a C Program that demonstrates redirection of standard output to a file .EX: ls > f1.

Read
15.

Write  a C program to create a child process and allow the parent to display “parent” and the child to display “child” on the screen.

Read
16.

Write a C program to create a Zombie process.

Read
17.

Write a C program that illustrates how an orphan is created.

Read
18.

Write a program that illustrates how to execute two commands concurrently with a command pipe

Read
19.

Write C programs that illustrate communication between two unrelated processes using named pipe

Read
20.

Write a C program to create a message queue with read and Write permissions to Write 3 messages to it with different priority numbers.

Read
21.

Write a C program that receives the messages(From the above message queue as specified in (21) and display them.

Read
22.

Write a C Program to allow cooperating processes to lock a resource for exclusive use,using a) Semaphores, b) Flock or lockf system calls.

Read
23.

Write a C program that illustrates suspending and resuming processes using signals

Read
24.

Write a C program that implements a producer-consumer system with two processes.(Using Semaphores).

Read
25.

Write client and server programs(using c) for interaction between server and client processes using Unix Domain sockets.

Read
26.

Write client and server programs(using c)for interaction between server and client processes using Internet Domain sockets.

Read
27.

Write a C program that illustrates two processes communicating using shared memory.

Read
28.

Design and Develop a shell script which removes empty files from PWD and changes other files

Read
29.

Design and Develop a shell script to count number of line in a file without using WC

Read
30.

Design and Develop a program to demonstrate fseek function.

Read
31.

Design and Develop a program to demonstrate use of fork() and exec() to create a new directory.

Read
32.

Design and Develop a program to demonstrate pipe function using dup system call.

Read
33.

Design and Develop program for creating a private message queue.

Read
34.

Design and Develop a program to demonstrate to indicate that the shared memory created will be available even after the process which created is exited.

Read
35.

Design and Develop a program to copy standard i/p to standard o/p using asynchronous i/o.

Read
  Other Notes
Analog Communications Lab
C Programming
Computer Programming Lab
Data Communications and computer Networks
EDC Assignments
Electronic Circuits and Pulse Circuits Lab
Electronic Devices and Circuits
Electronic Devices and Circuits Lab
HTML5
IC Applications and HDL Simulation Lab
Java Script
jQuery
Linux Programming and Data Mining Lab
Microprocessors and Interfacing Lab
Microprocessors and Microcontrollers
PDC Assignments
Pulse and Digital Circuits
Pulse and Digital Circuits Lab