Course Curriculum
Course Curriculum
Course Code: CSIT803 Credit Units L T P/S SW AS/DS FW No. of PSDA Total Credit Unit
Course Level PG 2 0 2 2 0 0 0 4
Course Title Unix /Linux Programming
Course
Description :
Course Objectives :
SN
Objectives
.
This course provides the students with the skills to use the UNIX and LINUX operating system. Basic commands for editing and manipulating files,
1 managing processes and interacting with the Bourne/Bourne Again Shell are presented via lecture and lab exercises. The course also teaches the
participant how to use the programming constructs of the shell language to write scripts that may be used to simplify or automate tasks
This course will prepare the students to work on UNIX/LINUX ENVIRONMENT as a technical user or system administrator of a powerful, fast
2
growing, multitasking, open operating system which is currently used on all types of computers from micros to mainframes.
Pre-Requisites :
Module V : sed Syntax for sed , regular expressions, Addressing: sed commands , Modify a File with sed , metacharacters,
5 Inserting / Deleting/Printing Text/Lines , Substitution , Multiple edits, reading from file and writing to file, quit 15.00
AND awk
command Introduction to sed scripting ; Syntax for awk , working of awk, Input from files, Input from
commands, Formatting output-print and printf function , concept of record and field in awk .
Module VI :
SYSTEM Adding and Removing Users, Starting up and Shutting down the System, Disk Management, File System
6 10.00
ADMINISTRATIO Mounting and Unmounting, Monitoring System Usage, Ensuring System Security
N
Theory /VAC / Architecture Assessment (L,T & Self Work): 75.00 Max : 100
Attendance+CE+EE : 5+45+50
Lab/ Practical/ Studio/Arch. Studio/ Field Work Assessment : 25.00 Max : 100
Attendance+CE+EE : 5+45+50
SN
Lab / Practical Details
.
1 Write a shell script which ask your name, age, department, and course and lastly give the syntax to display all your information.
Write a shell script which asks your Enrolment no., name, name of 3 subjects and marks obtained. Display these fields by using echo and equal
2
operator.
3 Write a shell script, declare 5 variables and assign values to them. Display the values in the given order:- 1,5,2,3,4
Write a shell script that creates a file containing the message that this file is created today i.e. on the current date followed are the users of Unix at
4
this moment and show the list of users.
5 Write a shell script that accepts two file names from the command line, copies the first to second file and display the second file
6 Write a shell script that accepts two parameters i.e. two files, append file1 to file2 and display file2.
7 Write a shell script that assigns execute permission to a file
8 Write a shell script that accepts one file and directory name and move that file to the directory and show recursive listing and long listing.
9 Write a shell script where we create a directory, move to the directory, create a file. Show the present path and display the file.
10 Write a shell script that asks your name and invite you on current date for a party and append this message to a file name party.
11 a) Write a shell script that reads a file name from command line and changes name to filename.logname.
12 Write a shell script which displays the date in desired format i.e. Monday 25 September 2006.
Write a shell script by which you create a branch \usr directory till depth of d5 and using concept of assigning the path to the variables do the
13
movements within this directory path and create two files in each directory from d1.
14 Write a shell script and declare two variables A and B. Take static value of A=5 and B=3. Perform all operations on it.
15 Write a shell script which accepts a number and checks whether the number is an odd or even number.
Write a shell script to give the result of student. Take marks of the five subjects, student name, roll no and percentage and show a message whether
16
a student gets division as per the following rules:
17 Write a shell script which checks the age of the student for swimming. The condition are as follows:
18 Write a shell script to find out the gross salary of an employee when the given information is as under:-
19 Write a shell script to enter a year and show a message whether the year is a leap year or not.
Write a shell script using concept of position parameters which copies one file and display destination file and it should also contain an error message
20
if the source file does not exist.
Write a shell script to calculate the gross salary of an employee whose basic salary is entered through keyboard. His DA=40% of basic and
21
HRA=20% of basic.
Write a shell script where distance between two cities is input through the keyboard in km. Convert and print this distance in meters, feet, inches and
22
cm.
23 Write a shell script to find area and perimeter of rectangle.
24 Write shell scrip to find area and circumference of the circle.
25 Write a shell script to find sum of digits of a number and check whether the number is palindrome or not.
26 Pass a filename as command line argument to script which finds
27 Write a menu driven program:-
28 Write a Menu driven program
Write a shell script where you accept a character and you have to echo message whether the entered character is a small case, capital case or a digit
29
or a special symbol. Display error message if more than one character is entered.
30 Write a shell script where you accept a word and echo the message
31 Write a shell script where you check whether
32 Write a shell script to print if its:
33 Write a shell script for printing calendar. Accepts month, year and name as command line argument.
34 Write a shell script to find a total of
35 Write a shell script that takes a search string and filename from the terminal and display the result.
Write a shell script that takes pattern and filename as command line arguments and displays the results appropriately i.e. pattern found/pattern not
36
found
Write a shell script that accepts only three arguments from command line. The first is the pattern string, the second is the filename in which the
37
pattern is to be searched and the third is the filename in which result is to be stored.
Write a shell script that accepts a filename as a command line and finds out if it’s a regular file or a directory. If it’s regular file, then perform various
38
tests to see if it’s readable, writeable, executable etc.
39 Write a shell script that computes the factorial of a given number
40 Write a shell script that works like a calendar reminding the user of certain things depending on the day of the week.
41 Write a shell script that changes the extension of group files from text to doc
42 Write a shell script which will redirect the output of the date command without the time into a file.
Write a shell script to execute endlessly a loop which displays contents of the current directory, disk space status, and sleep for 30seconds and
43
display the users currently logged in on the screen.
Write a shell script that receives two filenames as arguments. It should check whether content of the two file is same or not. If they are same, second
44
file should be deleted.
45 If a number is input through keyboard, write shell script to calculate sum of digits
46 Write a shell script that performs a count down either from 10 or from the value that is entered by the user.
Write a shell script that examines each file in the current directory. Files whose names end in old are moved to a directory named old files and files
47
whose name ends with .c are moved to directory named cprograms
Write a shell script which takes a command line argument of kms and by default converts that number into meters. Also provide options to convert km
48
to dm and km to cm.
Write a shell script for renaming each file in the directory such that it will have the current shell PID as an extension. The shell script should ensure
49
that the directories do not get renamed.
50 Write a shell script to print Fibonacci series.
Write a shell script that will receive any number of filenames as arguments. The shell script should check whether such file already exists. If they do,
then it should be reported. The files that do not exist should be created in a sub directory called mydir. The shell script should first check whether the
51
subdirectory mydir exists in the current directory. If it doesn’t then it should be created. If it does then it should be reported along with the number of
files that are currently present in
52 Create a file with the following fields separated by “:” (at least 15 records)
No.of PSDA : 0
N/A