You are on page 1of 3

SCMS SCHOOL OF TECHNOLOGY AND MANAGEMENT

MASTER OF COMPUTER APPLICATIONS

COURSE NAME: MCA 506 Linux Lab


Course Objective
The objective of the course
 Help students to get introduced to Linux environment
 Guide them in using all major features of Linux.
 Guide them to write shell programs and linux administration
 Develop into competent programmers with the ability to work under any environments.
Course Co ordinator
Name: s shridevi e-mail: shridevi@scmsgroup.org

Course Website and Notices:


All material and notices relating to this course will be provided in class or distributed via MOODLE .

Recommended Text
Operating System - Linux, NUT Press, PHI Publisher, 2006 Edition
References
1. Introduction to Unix / Linux, Diaz , Thomson Learning 1Edn.
2. Unix - Shell Programming, Yeshwant Kanetkar, BPB Publishers

CIA Division:
LAB ASSESSMENT CRITERIA
INTERNALS
Regular Lab 5
Work/Performance
Mid Term Exam 10
Assignment 10
Viva 15
Record work 10
End Term Exam 50
TOTAL 100

Regular Lab Work/Performance:


Students have to execute all the programs given in the session plan and get it verified by the faculty in
charge.
Lab Record:
The lab record should be submitted on every I & III Saturdays and should include the exercises mentioned.
Midterm exam:
The Midterm Lab Exam will be for two hours for programs worth 30 marks.
End term exam:
The End term Lab Exam will be for three hours consisting of 2 programs worth 40 marks.
Assignment:
The assignment in the lab expects each student to work on the assignment topic given to them and
submit with execution in the specified date.
Detailed Course Plan

SESSION 1-5:
1. Installing Linux OS - Logging in and out, Creating user accounts, Changing passwords, getting help
with MAN command
SESSION 6-10:

2. Basic Overview about the various commands - cal, chm, date, finger, groups, help, hostname, hwclock,
rwho, tzselect, uname,whatis, whoami, bash, bind, kill, nice, set, source, fc, echo, cd, file, find, his,
vdir, xargs, chgrp, In, mkdir, rmdir, safedelete, we, touch, compress, gpg, bunzip2, mcrypt, mount,
unmount, cksum, eqn, strfile, grep, fgrep, groff, troff, zcat, uniq, rev, awk, sed
SESSION 11-15:

3. Navigating the Linux file system

4. Creating files and directories

SESSION 15-20:

5. Using Text editors - emacs, joe, vi, pico

6. Working with Hard disk drives and Peripherals


SESSION 21-35:

7. Shell programming

1. Write a shell script to Reverse a number and check for polyndrome.


2. Write a shell script to list all the files with their complete details in the current directory.
3. Write a shell program to read two strings and
a) check whether they are same or different.
b) check whether the length of a string is greater than 0 or not
4. Write a shell script to give the factorial of a given number.
5. Read a file name under a directory and check whether it has read, write and execute permissions.
Also give options to user to change any of the permissions
6. Read a number and tell whether it is odd or even.
7. Using Case, Enter a Number between 1 to 7 and echo the corresponding weekday.
8. Write a shell script to search for a pattern in a given file.
9. Write a shell script to generate multiplication table of any number entered.
10. Write a shell script to concatenate two files.
11. Write a shell script to check whether a given number is prime or not.
12. Write a shell script to display the difference between two files.
13. Write a shell script to copy one file to another and delete a file.
14. Write a shell script to find sum of first n natural numbers.
15. Write a shell script to display the lines that don’t have the search pattern in a file of the current
directory.
16. Write a shell script to create your own directory, sub directory, and a file by getting the option of
user.
17. Write Script, using case statement to perform basic math operation as addition, subtraction,
multiplication, division, and modulus for any two numbers.
18. Write a shell script using case statement to show the details of
1) Your current shell
2) Your home directory
3) Your login name
4) Your current working directory

5) current date and time

19. Write a shell script to accept a C++ file and check for its existence and compile and execute the
file thru your script.
20. Write a shell script to accept a java file and check for its existence and compile and execute the
file thru your shell script
21. Write a shell script to accept a C file and check for its existence and compile and execute the file
thru your shell script.
22. Write a shell script to copy files, remove files, move files and create a file under a directory by
getting the choice of the user.
23. Write shell script to imitate the working of CP(COPY) command in Linux
24. Write shell script to imitate the working of LS(LIST) command in Linux
25. Write shell script to imitate the working of REMOVE(rm) command in Linux
26. Write shell script to imitate the working of grep command in Linux
27. Setup a cron job to echo Study Linux every 30 minutes, Monday to Friday.
28. Setup a script that displays the date and then a list of everyone who is logged on. Run your script
and make sure that it works. Setup cron to run the script you created on the first day of every
month at 08:02.
29. Setup a script called backup that echoes the message "You should backup now". Run your script
and make sure that it works. Setup cron to run the script to execute on the first day of every
month at 07:17.
30. Write a shell script to execute a command at a particular time.

SESSION 36-40:

31. Managing users and groups

32. Using LILO and LOADLIN, GRU.

You might also like