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

subtraction. Write a shell script to create your own directory. 8. division. Write a shell script to give the factorial of a given number.cal. eqn. tzselect. 12. 11. bind. file. his. fgrep. vi. Enter a Number between 1 to 7 and echo the corresponding weekday. Write a shell script to find sum of first n natural numbers. Working with Hard disk drives and Peripherals SESSION 21-35: 7. b) check whether the length of a string is greater than 0 or not 4. 9. 7. groff. Write a shell script to generate multiplication table of any number entered. unmount. finger. troff. Write a shell script to copy one file to another and delete a file. strfile. Read a file name under a directory and check whether it has read. 16. zcat. kill. cd. 14. source. safedelete. groups. help. and a file by getting the option of user. chm. Write Script. Also give options to user to change any of the permissions 6. find. Write a shell script using case statement to show the details of 1) Your current shell 2) Your home directory . write and execute permissions. uname. 2. bash. rwho. 15.emacs. Write a shell script to check whether a given number is prime or not. mkdir. Write a shell script to concatenate two files. rmdir. echo. bunzip2.whatis.SESSION 6-10: 2. sed SESSION 11-15: 3. Write a shell program to read two strings and a) check whether they are same or different. whoami. nice. mcrypt. joe. 3. mount. pico 6. Basic Overview about the various commands . hwclock. 10. Write a shell script to Reverse a number and check for polyndrome. Write a shell script to display the lines that don’t have the search pattern in a file of the current directory. Navigating the Linux file system 4. set. Creating files and directories SESSION 15-20: 5. Using Case. using case statement to perform basic math operation as addition. cksum. 13. grep. awk. xargs. Read a number and tell whether it is odd or even. sub directory. vdir. multiplication. touch. uniq. In. compress. date. chgrp. Shell programming 1. Using Text editors . 17. Write a shell script to list all the files with their complete details in the current directory. 18. we. fc. rev. Write a shell script to display the difference between two files. and modulus for any two numbers. 5. Write a shell script to search for a pattern in a given file. hostname. gpg.

Setup a script that displays the date and then a list of everyone who is logged on.3) Your login name 4) Your current working directory 5) current date and time 19. Managing users and groups 32. GRU. Write shell script to imitate the working of CP(COPY) command in Linux 24. Setup cron to run the script to execute on the first day of every month at 07:17. Run your script and make sure that it works. 22. Write a shell script to accept a C++ file and check for its existence and compile and execute the file thru your script. 20. Setup a cron job to echo Study Linux every 30 minutes. 28. Run your script and make sure that it works. remove files. Write shell script to imitate the working of grep command in Linux 27. Setup a script called backup that echoes the message "You should backup now". SESSION 36-40: 31. Write a shell script to copy files. Write a shell script to execute a command at a particular time. Setup cron to run the script you created on the first day of every month at 08:02. Using LILO and LOADLIN. 29. Write shell script to imitate the working of REMOVE(rm) command in Linux 26. 30. Write a shell script to accept a C file and check for its existence and compile and execute the file thru your shell script. Write shell script to imitate the working of LS(LIST) command in Linux 25. Monday to Friday. 23. 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. move files and create a file under a directory by getting the choice of the user. .