[go: up one dir, main page]

0% found this document useful (0 votes)
45 views4 pages

SE Unix R2019

This document describes a Unix lab course with the following key details: 1. The course has 1 credit with 2 hours of practical sessions per week and focuses on understanding Unix architecture, commands, and scripting. 2. Assessment includes 25 marks for term work based on completed practical assignments and a 50 mark end semester exam with questions on concepts and programming. 3. The lab aims to help students understand Unix systems, file management, processes, and scripting using shells, awk, and perl through hands-on experiments.

Uploaded by

24khushi kumawat
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
45 views4 pages

SE Unix R2019

This document describes a Unix lab course with the following key details: 1. The course has 1 credit with 2 hours of practical sessions per week and focuses on understanding Unix architecture, commands, and scripting. 2. Assessment includes 25 marks for term work based on completed practical assignments and a 50 mark end semester exam with questions on concepts and programming. 3. The lab aims to help students understand Unix systems, file management, processes, and scripting using shells, awk, and perl through hands-on experiments.

Uploaded by

24khushi kumawat
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Teaching Scheme Credits Assigned

Lab Code Lab Name (Contact Hours)


Theory Practical Tutorial Theory Practical Tutorial Total

ITL402 Unix Lab -- 02 -- -- 01 -- 01

Examination Scheme
Lab Code Lab Name
Theory Marks
Internal assessment End
Term Work Pract. /Oral Total
Sem.
Test1 Test 2 Avg.
Exam
ITL402 Unix Lab
-- -- -- -- 25 25 50

Lab Objectives:

Sr. No. Lab Objectives


The Lab experiments aims:
1 To understand architecture and installation of Unix Operating System
2 To learn Unix general purpose commands and programming in Unix editor environment
3 To understand file system management and user management commands in Unix.
4 To understand process management and memory management commands in Unix
5 To learn basic shell scripting.
6 To learn scripting using awk and perl languages.

Lab Outcomes:

Sr. Lab Outcomes Cognitive levels


No. of attainment as
per Bloom’s
Taxonomy
On successful completion, of course, learner/student will be able to:
1 Understand the architecture and functioning of Unix L1, L2
2 Identify the Unix general purpose commands L4
3 Apply Unix commands for system administrative tasks such as file system L3
management and user management.
4 Execute Unix commands for system administrative tasks such as process L4
management and memory management
5 Implement basic shell scripts for different applications. L3
6 Implement advanced scripts using awk & perl languages and grep, sed, etc. L3
commandsfor performing various tasks.

Prerequisite: Programming Language C


Hardware & Software Requirements:

Hardware Requirement: Software requirement:

PC i3 processor and above Unix, Editor, Bash shell, Bourne shell and C shell

DETAILED SYLLABUS:

Sr. Module Detailed Content Hours LO


No. Mapping
0 Prerequisite Basic Programming Skills, Concepts of Operating 02 -
System
I Introduction to Case Study: Brief History of UNIX, Unix Architecture; 03 LO1
Unix Installation of Unix Operating System
II Basic Commands a) Execution of Unix General Purpose Utility 03 LO2
Commands like echo, clear, exit, date, time, uptime,
cal, cat, tty, man, which, history, id, pwd, whoami,
ping, ifconfig, pr, lp, lpr, lpstat, lpq, lprm, cancel,
mail, etc.
b) Working with Editor Vi/other editor.
III Commands for a) Study of Unix file system (tree structure), file and 04 LO3
File System directory permissions, single and multiuser
Management and environment.
User Management b) Execution of File System Management Commands
like ls, cd, pwd, cat, mkdir, rmdir, rm, cp, mv,
chmod, wc, piping and redirection, grep, tr, echo,
sort, head, tail, diff, comm, less, more, file, type, wc,
split, cmp, tar, find, vim, gzip, bzip2, unzip, locate,
etc.
c) Execution of User Management Commands like
who, whoami, su, sudo, login, logout, exit, passwd,
useradd/adduser, usermod, userdel, groupadd,
groupmod, groupdel, gpasswd, chown, chage, chgrp,
chfn, etc.
IV Commands for a) Execution of Process Management Commands like 04 LO4
Process ps, pstree, nice, kill, pkill, killall, xkill, fg, bg, pgrep,
Management and renice, etc.
Memory b) Execution of Memory Management Commands like
Management free, /proc/meminfo, top, htop, df, du, vmstat,
demidecode, sar, pagesize, etc.
V Basic Scripts a) Study of Shell, Types of Shell, Variables 04 L02,
andOperators L03,
b) Execute the following Scripts (at least 6): L05
(i) Write a shell script to perform arithmetic
operations.
(ii) Write a shell script to calculate simple interest.
(iii) Write a shell script to determine largest among
three integer numbers.
(iv) Write a shell script to determine a given year is
leap year or not.
(v) Write a shell script to print multiplication table
of given number using while statement.
(vi) Write a shell script to search whether element is
present is in the list or not.
(vii) Write a shell script to compare two strings.
(viii) Write a shell script to read and check if the
directory / file exists or not, if not make the
directory / file.
(ix) Write a shell script to implement menu-driven
calculator using case statement.
(x) Write a shell script to print following pattern:
*
**
***
****
(xi) Write a shell script to perform operations on
directory like: display name of current directory;
display list of directory contents; create another
directory, write contents on that and copy it to a
suitable location in your home directory; etc.
VI Advanced Scripts a) Execute the following scripts using grep / sed 06 LO2,
commands: L03,
L06
(i) Write a script using grep command to find the
number of words character, words and lines in a
file.
(ii) Write ascriptusing egrep command to display list
of specific type of files in the directory.
(iii) Write a script using sed command to replace all
occurrences of particular word in given a file.
(iv) Write a script using sedcommand to print
duplicated lines in input.
b) Execute the following scripts using awk / perl
languages:
(i) Write an awk script to print all even numbers in
a given range.
(ii) Write an awk script to develop a Fibonacci series
(take user input for number of terms).
(iii) Write a perl script to sort elements of an array.
(iv) Write a perl script to check a number is prime or
not.

Text Books:
1. S. Das, Unix Concepts and Applications, 4th ed., McGraw Hill, 2017.
2. R. Michael, Mastering Unix Shell Scripting, 2nd ed., Wiley, 2008.
3. D. Ambawade, D. Shah, Linux Labs and Open Source Technologies, Dreamtech Press, 2014.

References:
1. Y. Kanetkar, Unix Shell Programming, BPB Publications, 2003.
2. B. Forouzan and R. Gilberg, Unix and Shell Programming, Cengage Learning, 2003.
Term Work: Term Work shall consist of at least 10 to 12 practical’s based on the above list. Also Term work
Journal must include at least 2 assignments.

Term Work Marks: 25 Marks (Total marks) = 15 Marks (Experiment) + 5 Marks (Assignments) + 5 Marks
(Attendance)

Practical & Oral Exam: An Oral & Practical exam will be held based on the above syllabus.

You might also like