RAJASTHAN TECHNICAL UNIVERSITY, KOTA
Syllabus
II Year-IV Semester: B.Tech. Computer Science and Engineering
4CS4-24: Linux Shell Programming Lab
Credit: 1 Max. Marks: 50(IA:30, ETE:20)
0L+0T+2P
List of Experiments:
1. Use of Basic Unix Shell Commands: ls, mkdir, rmdir, cd, cat, banner, touch,
file, wc, sort, cut, grep, dd, dfspace, du, ulimit.
2. Commands related to inode, I/O redirection and piping, process control
commands, mails.
3. Shell Programming: Shell script based on control structure- If-then-fi, if-then-
else-if, nested if-else, to find:
3.1 Greatest among three numbers.
3.2 To find a year is leap year or not.
3.3 To input angles of a triangle and find out whether it is valid triangle or not.
3.4 To check whether a character is alphabet, digit or special character.
3.5 To calculate profit or loss.
4. Shell Programming - Looping- while, until, for loops
4.1 Write a shell script to print all even and odd number from 1 to 10.
4.2 Write a shell script to print table of a given number
4.3 Write a shell script to calculate factorial of a given number.
4.4 Write a shell script to print sum of all even numbers from 1 to 10.
4.5 Write a shell script to print sum of digit of any number.
5. Shell Programming - case structure, use of break
5.1 Write a shell script to make a basic calculator which performs addition,
subtraction,
Multiplication, division
5.2 Write a shell script to print days of a week.
5.3 Write a shell script to print starting 4 months having 31 days.
6. Shell Programming - Functions
6.1 Write a shell script to find a number is Armstrong or not.
6.2 Write a shell script to find a number is palindrome or not.
6.3 Write a shell script to print Fibonacci series.
6.4 Write a shell script to find prime number.
6.5 Write a shell script to convert binary to decimal and decimal to binary
7. Write a shell script to print different shapes- Diamond, triangle, square,
rectangle, hollow square etc.
8. Shell Programming Arrays
8.1 Write a C program to read and print elements of array.
8.2 Write a C program to find sum of all array elements.
8.3 Write a C program to find reverse of an array.
8.4 Write a C program to search an element in an array.
8.5 Write a C program to sort array elements in ascending or descending order.
Syllabus of 2nd Year B. Tech. (CS) for students admitted in Session 2017-18 onwards. Page 12