0% found this document useful (0 votes)
34 views

Laspocbc

This document outlines the curriculum for a 4th semester Linux and Shell Programming course. The course aims to: 1) Teach students the basics of Unix operating systems and Linux file systems. 2) Explain Linux usage and commands for manipulating files and directories. 3) Have students write shell scripts using programming aspects like control structures, file handling and positional parameters. 4) Cover system administration tasks in Linux like managing users, monitoring performance and basic network service configuration.

Uploaded by

Sareef Ladka
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)
34 views

Laspocbc

This document outlines the curriculum for a 4th semester Linux and Shell Programming course. The course aims to: 1) Teach students the basics of Unix operating systems and Linux file systems. 2) Explain Linux usage and commands for manipulating files and directories. 3) Have students write shell scripts using programming aspects like control structures, file handling and positional parameters. 4) Cover system administration tasks in Linux like managing users, monitoring performance and basic network service configuration.

Uploaded by

Sareef Ladka
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/ 31

Sheet

RGPV (DIPLOMA WING) BHOPAL OBE CURRICULUM FOR THE COURSE FORMAT-3 No. 1/3

Branch COMPUTER SCIENCE AND ENGINEERING Semester FOURTH

Course
Course Code
Name
LINUX AND SHELL PROGRAMMING
Understand basics of Unix Operating System and File System. (Hrs) (Mark
Course Outcome 1 s)

Discuss the history and development of Linux Operating System. 6 10


Learning Outcome 1

Unix Operating System, Understanding Open Source, Linux Origins,


Contents Distributions, Linux Principles, linux vs windows.

Method of Assessment END SEM THEORY (EXTERNAL)

Understand Linux usages and basics. 6 10


Learning Outcome 2

Logging in to a Linux System, Switching between virtual consoles and the


Contents graphical environment, Changing your password, The root user, Changing
identities, Editing text files.Choose and download a Linux distro, Linux
installation process, install more software,Use Linux on a virtual machine.
PROGRESSIVE TEST-I (INTERNAL)
Method of Assessment
Explain Linux File System. 8 10
Learning Outcome 3

Linux File Hierarchy Concepts, Some Important Directories, Current Working


Contents Directory, File and Directory Names, Absolute and Relative Pathnames, command
related to files and directory Changing Directories, Listing Directory Contents,
Copying, Moving, Renaming, Creating and Removing Files & Directories,
Determining File Content.
Partitions and File system, I-nodes, Directories, Hard Links, Symbolic ( or soft)
Links, The Seven Fundamental File types, Checking Free Space, mounting &
unmounting File system , working with etc/fstabe, Archiving Files, Compressing,
Creating, Listing and Extracting File, Other Archiving Tools.
Method of Assessment END SEM THEORY (EXTERNAL)

Understanding the basic set of commands and utilities in Linux systems.


Course Outcome 2

Learning Outcome 4 Use basic commands of files and directories. 8 15

Running Commands, Some Simple commands list basic commands, Getting Help,
Contents The whatis command, The – help Option, Reading Usage Summaries.

Files and Directories


echo, type, bc, cal, date, cat, cd, chgrp, chmod, cp, file, find, grep, egrep, fgrep,
head, just, lpq, lpr , lprm, cancel, ls, ls-l, mkdir, more, page, mv, pwd, passwd,
rm, rmdir, tail, touch.
Method of Assessment PRACTICAL (EXTERNAL)
Learning Outcome 5 Use Linux commands for file editor, compression and text processing. 8 10

File Editors
Contents
Editors are used to create and amend files.
Emacs, ex, edit, gedit, nedit, xemacs, emacs, dtpad, pico, vi,
Compressed files
Files may be compressed to save space.Compressed files can be created
and examined.
Compress, uncompress, zcat, zcmp, zdiff, zmore, tar, zip, unzip, gzip, gunzip,
bzip2, bunzip2.
Text Processing
vi: Opening, Modifying, saving and exiting vi text editor, mode of vi. Viewing file
contents, sorting text, Eliminating Duplicate lines, Comparing files, Compressing
the file,Introduction to gedit.
Method Of Assessment END SEM THEORY (EXTERNAL)

Learning Outcome 6 Apply basic commands to manipulate data. 6 10

The contents of files can be compared and altered with the following commands.
Contents Awk, cmp, comm, cut, diff, expand, unexpand, gawk, Join, look, paste, sed, sort,
split, tr, uniq, wc.

Method of Assessment PRACTICAL(INTERNAL)

Learning Outcome 7 Apply standard input/output and pipes in file. 5 10


Standard I/O and Pipes
Contents
Standard Input and Output, Redirecting Output to a File, Redirecting STDOUT to
a Program(Piping), Combining Output and Errors, Redirecting to Multiple Targets
(tee), Redirecting STDIN from a file.
Method of Assessment END SEM THEORY (EXTERNAL)

Write shell programming and investigate & manage processes.


Course Outcome 3

Learning Outcome 8 Use and configure the Bash Shell. 5 10

Introduction of Bash shell, Bash Features, Command Line, Command Line


Contents Expansion, and Editing, gnome-terminal.

PROGRESSIVE TEST-II (INTERNAL)


Method of Assessment

Learning Outcome 9 Write shell programming using different programming aspects. 8 15

Scripting Basics, Creating Shell Scripts, Handling Input/ Output, Control


Contents Structures, Conditional Execution, File and string Tests, continue and break, Using
positional parameters, Scripting at the command line, Shell Script debugging.

Method of Assessment PRACTICAL(EXTERNAL)

Learning Outcome 10 Explain Process management. 6 10


Investigating and Managing Process
Contents Process, Listing Processes, Finding Processes, Signals Sending, Signals to
Processes, Scheduling Priority, Altering Scheduling Priority, Interactive Process
management tools, Job Control, Scheduling a Process to execute later, Crontab
File format, Different run levels.
Method of Assessment END SEM THEORY (EXTERNAL)

Explain the role of system administration and network services in Linux.


Course Outcome 4

Define the role of system administration. 6 10


Learning Outcome 11

Common Administrative tasks, identifying administrative files –


Contents
configuration and log files, Role of system administrator, Managing user accounts
–adding & deleting users, changing permissions and ownerships, Creating and
managing groups, modifying group attributes, Temporary disable user’s
accounts, creating and mounting file system, checking and monitoring system
performance, file security, password and Permissions,becoming super user
using su.

Method of Assessment END SEM THEORY (EXTERNAL)

Learning Outcome 12 Understand the way of getting system information. 6 10

Host name, disk partitions & sizes, users, kernel. Backup and restore
Contents files,Utility in GUI, reconfiguration hardware with kudzu.
Method of Assessment TERM WORK- ASSIGNMENT (INTERNAL)

Explain network services. 6 10


Learning Outcome 13

NETWORKING SERVICES ON LINUX:


Contents Server –side setup, configuration, and basic administration of common
networking services: Sambha, DNS, NIS, Apache, SMB, DHCP, Sendmail,
FTP Other common services: tftp, pppd, proxy
Method of Assessment END SEM THEORY (EXTERNAL)

Apply Linux networking concept to setup a small network. 6 10


Learning Outcome 14

Networking Services: Sambha, Apache, DHCP, FTP.


Contents
Setup a small network in your lab and connect to that network Internet Protocol
Service. These commands are used to send and receive files from Campus
UNIX hosts and from other hosts and the Internet around the world.
ifconfig, ping, traceroute, netstat, hostname, nslookup, route, host, arp,
iwconfig, etc.
Method of Assessment PRACTICAL (INTERNAL)
CO LO
RGPV (Diploma Wing ) SCHEME FOR LEARNING Branch Code Course Code
Code Code
Format No.

Bhopal OUTCOME C 0 4 4 0 4 1 1 4
COURSE NAME LINUX AND SHELL PROGRAMMING
CO-1
Understand basics of Unix Operating System and File System.
Description
LO-1 Description Discuss the history and development of Linux Operating System.
SCHEME OF STUDY
Teaching –Learning Description of T-L Teach Pract.
S. No. Learning Content LRs Required Remarks
Method Process Hrs. /Tut Hrs.
1. Traditional Lecture Teacher will explain 6 - Handout
Unix Operating method + Handout the contents and
System, Understanding provide handouts to
Open Source, Linux students.
Origins, Distributions,
Linux Principles, linux
vs windows.
SCHEME OF ASSESSMENT
Maximum External /
S. No. Method of Assessment Description of Assessment Resources Required
Marks Internal

Paper pen test(End


Students will be asked to explain 10 External
Semester Exam) Test Paper

ADDITIONAL INSTRUCTIONS FOR THE HOD/ FACULTY (IF ANY)


CO LO
SCHEME FOR LEARNING Branch Code Course Code
Code Code
RGPV (Diploma Wing ) Bhopal
OUTCOME C 0 4 4 0 4 1 2
Format No. 4
COURSE NAME LINUX AND SHELL PROGRAMMING
CO-1 Description Understand basics of Unix Operating System and File System.
LO-2 Description Understand Linux usages and basics.
SCHEME OF STUDY
Teaching –Learning Description Pract.
S. No. Learning Content Teach Hrs. LRs Required Remarks
Method of T-L Process /Tut Hrs.
Logging in to a Linux Traditional Lecture Teacher will 6 - Handout
System, Switching method + Handout explain the
between virtual contents and
consoles and the provide
graphical handouts to
environment, students.
Changing your
password, The root
user, Changing
identities, Editing text
files.Choose and
download a Linux
distro, Linux
installation process,
install more
software,Use Linux
on a virtual machine.
SCHEME OF ASSESSMENT
Description of External /
S. No. Method of Assessment Maximum Marks Resources Required
Assessment Internal
Paper pen test A Student will be asked
to
10 Test Paper Internal
(Progressive test -1)
ADDITIONAL INSTRUCTIONS FOR THE HOD/ FACULTY (IF ANY)

CO LO
SCHEME FOR LEARNING Branch Code Course Code
Code Code
RGPV (Diploma Wing ) Bhopal
OUTCOME C 0 4 4 0 4 1 3
Format No. 4
COURSE NAME LINUX AND SHELL PROGRAMMING

CO-1 Description Understand basics of Unix Operating System and File System.
LO-3 Description Explain Linux File System.
SCHEME OF STUDY
Teaching –Learning Description of T-L Teach Pract.
S. No. Learning Content LRs Required Remarks
Method Process Hrs. /Tut Hrs.
Linux File Hierarchy Traditional Lecture Teacher will explain the - Handout
Concepts, Some method contents.
Important Directories,
Current Working
Directory, File and
Directory Names,
Absolute and Relative
Pathnames, command
related to files and
directory Changing
Directories, Listing
Directory Contents,
Copying, Moving,
Renaming, Creating
and Removing Files &
Directories,
Determining File
Content.
Partitions and File
system, I-nodes,
Directories, Hard Links,
Symbolic ( or soft)
Links, The Seven
Fundamental File
types, Checking Free
Space, mounting &
unmounting File system
, working with
etc/fstabe, Archiving
Files, Compressing,
Creating, Listing and
Extracting File, Other
Archiving Tools.

SCHEME OF ASSESSMENT
Maximum External /
S. No. Method of Assessment Description of Assessment Resources Required
Marks Internal

Paper pen test(End


Students will be asked to 10 Test Paper External
Semester Exam)

ADDITIONAL INSTRUCTIONS FOR THE HOD/ FACULTY (IF ANY)


CO LO
SCHEME FOR LEARNING Branch Code Course Code
Code Code
RGPV (Diploma Wing ) Bhopal
OUTCOME C 0 4 4 0 4 2 4
Format No. 4
COURSE NAME LINUX AND SHELL PROGRAMMING

CO-2 Description Understanding the basic set of commands and utilities in Linux systems.
LO-4 Description Use basic commands of files and directories.
SCHEME OF STUDY
Teaching –Learning Description of T-L Teach Pract.
S. No. Learning Content LRs Required Remarks
Method Process Hrs. /Tut Hrs.
Running Commands, Traditional Lecture Teacher will explain the 8 Lab Manual
Some Simple method + Handout contents and provide
commands list basic handout to students.
commands, Getting
Help, The whatis
command, The – help
Option, Reading Usage
Summaries.
Files and Directories
echo, type, bc, cal,
date, cat, cd, chgrp,
chmod, cp, file, find,
grep, egrep, fgrep,
head, just, lpq, lpr ,
lprm, cancel, ls, ls-l,
mkdir, more, page,
mv, pwd, passwd, rm,
rmdir, tail, touch.
SCHEME OF ASSESSMENT
Maximum External /
S. No. Method of Assessment Description of Assessment Resources Required
Marks Internal

15
Student will be asked to
Practical External

ADDITIONAL INSTRUCTIONS FOR THE HOD/ FACULTY (IF ANY)

CO LO
SCHEME FOR LEARNING Branch Code Course Code
Code Code
RGPV (Diploma Wing ) Bhopal
OUTCOME C 0 4 4 0 4 2 5
Format No. 4
COURSE NAME LINUX AND SHELL PROGRAMMING
CO-2 Description Understanding the basic set of commands and utilities in Linux systems.
LO-5 Description Use Linux commands for file editor, compression and text processing.
SCHEME OF STUDY
Teaching –Learning Description of T-L Teach Pract.
S. No. Learning Content LRs Required Remarks
Method Process Hrs. /Tut Hrs.
File Editors Traditional Lecture Teacher will explain the 8 Handout
Editors are used to method + Handout contents and provide
create and amend files. handout to students.
Emacs, ex, edit, gedit,
nedit, xemacs, emacs,
dtpad, pico, vi,
Compressed files
Files may be
compressed to
save
space.Compress
ed files can be
created and
examined.
Compress,
uncompress, zcat,
zcmp, zdiff, zmore, tar,
zip, unzip, gzip, gunzip,
bzip2, bunzip2.
Text Processing
vi: Opening, Modifying,
saving and exiting vi
text editor, mode of vi.
Viewing file contents,
sorting text, Eliminating
Duplicate lines,
Comparing files,
Compressing the
file,Introduction to gedit.
SCHEME OF ASSESSMENT
Maximum External /
S. No. Method of Assessment Description of Assessment Resources Required
Marks Internal

Paper pen test(End


Students will be asked to 10 Test Paper External
Semester Exam)

ADDITIONAL INSTRUCTIONS FOR THE HOD/ FACULTY (IF ANY)

CO LO
SCHEME FOR LEARNING Branch Code Course Code
Code Code
RGPV (Diploma Wing ) Bhopal
OUTCOME C 0 4 4 0 4 2 6
Format No. 4
COURSE NAME LINUX AND SHELL PROGRAMMING

CO-2 Description Understanding the basic set of commands and utilities in Linux systems.

LO-6 Description Apply basic commands to manipulate data.


SCHEME OF STUDY
Teaching –Learning Description of T-L Teach Pract.
S. No. Learning Content LRs Required Remarks
Method Process Hrs. /Tut Hrs.
The contents of files - 6 Lab manual
can be compared and Teacher will explain the
altered with the Traditional Lecture contents and provide
following commands. method Lab Manual to
Awk, cmp, comm, cut, students.
diff, expand, unexpand,
gawk, Join, look, paste,
sed, sort, split, tr, uniq,
wc.
SCHEME OF ASSESSMENT
Maximum External /
S. No. Method of Assessment Description of Assessment Resources Required
Marks Internal

Practical Student will be asked to 10 Lab Manual Internal

ADDITIONAL INSTRUCTIONS FOR THE HOD/ FACULTY (IF ANY)


Experiment-
CO-2 Description Understanding the basic set of commands and utilities in Linux systems.
LO-7 Description Apply standard input/output and pipes in file.
SCHEME OF STUDY
Teaching –Learning Description of T-L Teach Pract.
S. No. Learning Content LRs Required Remarks
Method Process Hrs. /Tut Hrs.
Standard I/O and Teacher will explain the 5 - Handout
Pipes: Traditional Lecture contents and provide
Standard Input and method + Handout handout to students.
Output, Redirecting
Output to a File,
Redirecting STDOUT
to a Program(Piping),
Combining Output and
Errors, Redirecting to
Multiple Targets (tee),
Redirecting STDIN
from a file.

SCHEME OF ASSESSMENT
Maximum External /
S. No. Method of Assessment Description of Assessment Resources Required
Marks Internal
Paper pen test(End
Student will be asked to 10 Test paper External
Semester Exam)

ADDITIONAL INSTRUCTIONS FOR THE HOD/ FACULTY (IF ANY)

CO-3 Description Write shell programming and investigate & manage processes.
LO-8 Description Use and configure the Bash Shell.
SCHEME OF STUDY
Teaching –Learning Description of T-L Teach Pract.
S. No. Learning Content LRs Required Remarks
Method Process Hrs. /Tut Hrs.
Introduction of Bash Teacher will explain 5 - Hand out
shell, Bash Features, Traditional Lecture the contents and
Command Line, method + Handout provide handout to
Command Line students.
Expansion, and Editing,
gnome-terminal.

SCHEME OF ASSESSMENT
Maximum External /
S. No. Method of Assessment Description of Assessment Resources Required
Marks Internal
Paper pen Test
Students will be asked to 10 Test paper Internal
(Progressive-II)

ADDITIONAL INSTRUCTIONS FOR THE HOD/ FACULTY (IF ANY)

CO-3 Description Write shell programming and investigate & manage processes.
LO-9 Description Write shell programming using different programming aspects.
SCHEME OF STUDY
Teaching –Learning Description of T-L Teach Pract.
S. No. Learning Content LRs Required Remarks
Method Process Hrs. /Tut Hrs.
Scripting Basics, Teacher will explain the 8 Lab Manual
Creating Shell Scripts, Traditional Lecture contents.
Handling Input/ Output, method + Handout
Control Structures,
Conditional Execution,
File and string Tests,
continue and break,
Using positional
parameters, Scripting at
the command line, Shell
Script debugging.
SCHEME OF ASSESSMENT
Maximum External /
S. No. Method of Assessment Description of Assessment Resources Required
Marks Internal

Practical Student will be asked 15 External

ADDITIONAL INSTRUCTIONS FOR THE HOD/ FACULTY (IF ANY)

CO-3 Description Write shell programming and investigate & manage processes.
LO-10 Description Explain Process management.
SCHEME OF STUDY
Teaching –Learning Description of T-L Teach Pract.
S. No. Learning Content LRs Required Remarks
Method Process Hrs. /Tut Hrs.
Investigating and Teacher will explain the 6 Handout
Managing Process Traditional Lecture contents and provide
Process, Listing method handout to students.
Processes, Finding
Processes, Signals
Sending, Signals to
Processes, Scheduling
Priority, Altering
Scheduling Priority,
Interactive Process
management tools, Job
Control, Scheduling a
Process to execute
later, Crontab File
format. Different run
levels

SCHEME OF ASSESSMENT
Maximum External /
S. No. Method of Assessment Description of Assessment Resources Required
Marks Internal

Paper pen test(End


Students will be asked to 10 Test Paper External
Semester Exam)

ADDITIONAL INSTRUCTIONS FOR THE HOD/ FACULTY (IF ANY)


CO-4 Description Explain the role of system administration and network services in Linux.
LO-11 Description Define the role of system administration.
SCHEME OF STUDY
Teaching –Learning Description of T-L Teach Pract.
S. No. Learning Content LRs Required Remarks
Method Process Hrs. /Tut Hrs.
1 Common 6 -
Administrative tasks, Teacher will explain Handout NIL
identifying the contents and
administrative files – provide handout to
configuration and log Traditional Lecture students.
files, Role of system method + Handout
administrator,
Managing user
accounts –adding &
deleting users,
changing
permissions and
ownerships, Creating
and managing
groups, modifying
group attributes,
Temporary disable
user’s accounts,
creating and
mounting file system,
checking and
monitoring system
performance, file
security, password
and Permissions,
becoming super user
using su.
SCHEME OF ASSESSMENT
Maximum External /
S. No. Method of Assessment Description of Assessment Resources Required
Marks Internal

Paper pen test (End


10 Test paper External
semester Exam)

ADDITIONAL INSTRUCTIONS FOR THE HOD/ FACULTY (IF ANY)

COURSE NAME LINUX AND SHELL PROGRAMMING


CO-4 Description Explain the role of system administration and network services in Linux.
LO-12 Description Understand the way of getting system information.
SCHEME OF STUDY
Teaching –Learning Description of T-L Teach Pract.
S. No. Learning Content LRs Required Remarks
Method Process Hrs. /Tut Hrs.
1 host name, disk 6 -
partitions & Teacher will explain Handout NIL
sizes, users, the contents and
kernel. Backup provide handout to
and restore Traditional Lecture students.
files,Utility in method + Handout
GUI,
reconfiguration
hardware with
kudzu.

SCHEME OF ASSESSMENT
Maximum External /
S. No. Method of Assessment Description of Assessment Resources Required
Marks Internal

Paper pen test(Term


10 Handout Internal
work)

ADDITIONAL INSTRUCTIONS FOR THE HOD/ FACULTY (IF ANY)


CO-4
Explain the role of system administration and network services in Linux.
Description
LO-13
Explain network services.
Description
SCHEME OF STUDY
Teaching –Learning Description of T-L Teach Pract.
S. No. Learning Content LRs Required Remarks
Method Process Hrs. /Tut Hrs.
6 Handout
Server –side Traditional Lecture Teacher will explain
setup, method + Handout the contents and
configuration, and provide handout to
basic students.
administration of
common
networking
services: Sambha,
DNS, NIS,
Apache, SMB,
DHCP, Sendmail,
FTP Other
common services:
tftp, pppd, proxy

SCHEME OF ASSESSMENT
Maximum External /
S. No. Method of Assessment Description of Assessment Resources Required
Marks Internal

Paper pen test (End Student will be asked to


10 Test Paper External
semester Exam)

ADDITIONAL INSTRUCTIONS FOR THE HOD/ FACULTY (IF ANY)

CO LO
RGPV (Diploma Wing ) SCHEME FOR LEARNING Branch Code Course Code
Code Code
Format No.

Bhopal OUTCOME C 0 4 4 0 4 4 14 4
COURSE NAME LINUX AND SHELL PROGRAMMING
CO-4
Explain the role of system administration and network services in Linux.
Description
LO-14
Apply Linux networking concept to setup a small network.
Description
SCHEME OF STUDY
Teaching –Learning Description of T-L Teach Pract.
S. No. Learning Content LRs Required Remarks
Method Process Hrs. /Tut Hrs.
1. Traditional Lecture Teacher will explain 6 Lab Manual
Networking Services: method + Handout the contents and
Sambha, Apache, provide lab manual to
DHCP, FTP. students.

Setup a small
network in your lab
and connect to that
network Internet
Protocol Service.
These commands
are used to send
and receive files
from Campus UNIX
hosts and from
other hosts and the
Internet around the
world.
ifconfig, ping,
traceroute, netstat,
hostname,
nslookup, route,
host, arp, iwconfig,
etc.
SCHEME OF ASSESSMENT
Maximum External /
S. No. Method of Assessment Description of Assessment Resources Required
Marks Internal

Practical Students 10 Internal

ADDITIONAL INSTRUCTIONS FOR THE HOD/ FACULTY (IF ANY)


SUGGESTED LIST OF EXPERIMENT FOR SHELL PROGRAMMING
NOTE: THIS IS ONLY FOR PRACTICE. DON’T ASSUME FOR ASSESSMENT.

Operators and Expressions


Write Shell Program to:-
1. Display the text entered by the user in bold.
2. Read a number and write the number in words.
3. Shell Script to swap values in two variables x and y.
4. Read the base and height of a triangle and find its area.
5. Read price of an article and calculate discount.
6. Convert Fahrenheit to Celsius Temperature or Celsius to Fahrenheit
Temperature.
7. Find the number of files present in the current directory without using
WC command.
8. Display current date, calendar, and the number of user logged.
9. Script to Store given command and execute them.
10. Ask user his/her name and then display it with a G'Day/Good morning
Message.
11. Shell Script that outputs the number of users with entries in the Unix or
Linux /etc/passwd file.

Decision Making
Write Shell Program to:-
1. Read 3 numbers and find the greater of the three.
2. Display sum of two number and to do calculations such as +, -, / etc
3. Read 5 digit number and calculate the sum of digit (if number is 78215,
answer is 23)
4. Read source file and copy it to target file.
5. Read a number and find whether the number is odd or even.
6. Find out whether file has read, write and execute permission.
7. Find the validity of a given date.
8. Read a character (upper or lower), digit, special symbol and display
message according to the character entered.
9. Read any year and find whether leap year or not.
10. A menu driven Shell script which has following options: 1. Contents of
/etc/passwd 2. List of users currently logged 3. Present handling directory.
4. Exit And as per selected option do the job.
11. Shell program which gets executed the moment the user logs in, it
should display the message "Good morning", "Good Afternoon", or "Good
Evening" depending upon the time which the user logs in.
12. Read two numbers and display all the odd numbers between those two
numbers.

Looping in Shell Scripting


Shell program to:-
1. Display numbers from 1 to 10.
2. Calculate the number of digits in a number read from the user.
3. Read a number and reverse the number for example 123 should output
as 321.
4. Find whether an input number is palindrome or not.
5. Read a number and find the sum of digits.
6. Write script to print nos as 5,4,3,2,1 using while loop.

Miscellaneous
1. Write shell script that will add two nos, which are supplied as command
line argument, and if this two nos are not given show error and its usage.
2. Write Script to find out biggest number from given three nos. Numbers
are supplies as command line argument. Print error if sufficient arguments
are not supplied.
3. Write Script, using case statement to perform basic math operation as
follows + addition - subtraction x multiplication / division The name of script
must be 'q4' which works as follows:
$ ./q4 20 / 3, Also check for sufficient command line arguments.
4. Write Script to see current date, time, username, and current directory.
5. Write script to determine whether given file exist or not, file name is
supplied as command line argument, also check for sufficient number of
command line argument.
6. How to write script, that will print, Message "Hello World" , in Bold and
Blink effect, and in different colors like red, brown etc using echo
command. 7. Write shell script to show various system configuration like 1)
Currently logged user and his logname 2) Your current shell 3) Your home
directory 4) Your operating system type 5) Your current path setting 6) Your
current working directory 7) Show Currently logged number of users 8)
About your os and version ,release number , kernel version 9) Show all
available shells 10) Show mouse settings 11) Show computer cpu
information like processor type, speed etc 12) Show memory information
13) Show hard disk information like size of hard-disk, cache memory,
model etc 14) File system (Mounted)
8. Write shell script to convert file names from UPPERCASE to lowercase
file names or vice versa.
LINUX AND SHELL PROGRAMMING
CO(S) LO(S) MARKS AND TEACHING HOUR(S) ALLOTMENT

SCHEME FRAME-WORK: 90 HRS. MARKS: 100 (T) + 50 (P)

COURSE LEARNING ASSESSMENT HOURS MARKS REMARKS


OUTCOME OUTCOME

CO-1 LO-1 EXTERNAL (ESE) 6 10 END SEM EXAM


(20 HRS.)
(30 Marks) PROGRESSIVE TEST
LO-2 INTERNAL (PT-I) 6 10

LO-3 EXTERNAL (ESE) 8 10 END SEM EXAM

CO-2 LO-4 EXTERNAL (PE) 8 15 PRACTICAL EXAM


(27 HRS.)
(45 Marks) END SEM EXAM
LO-5 EXTERNAL (ESE) 8 10

LO-6 INTERNAL(PF) 6 10 PRACTICAL FILE

LO-7 EXTERNAL (ESE) 5 10 END SEM EXAM

CO-3 LO-8 INTERNAL (PT-II) 5 10 PROGRESSIVE TEST


(19 HRS.)
(35 Marks) PRACTICAL EXAM
LO-9 EXTERNAL (PE) 8 15

LO-10 EXTERNAL (ESE) 6 10 END SEM EXAM

CO-4 LO-11 EXTERNAL (ESE) 6 10 END SEM EXAM


(24 HRS.)
(40Marks) TERM WORK
LO-12 INTERNAL (TW) 6 10

LO-13 EXTERNAL (ESE) 6 10 END SEM EXAM

LO-14 INTERNAL(PF) 6 10 PRACTICAL FILE

You might also like