LSS Notes
LSS Notes
DEPARTMENT OF
ELECTRICAL & ELECTRONICS ENGINEERING
CERTIFICATE
This is to certify that the lab report entitled “Linux Shell Scripting Lab” is a
bonafide Work done by submitted in partial
fulfillment of the requirements for the award of the Degree in Electrical and
Electronics Engineering during the academic year 2024-2025. The results of
investigation enclosed in this report have been verified and found satisfactory.
External Examiner
ii
List of Experiments
1
2. DATE
3. man cal:
4. man man:
2
7. PWD:
6. mkdir:
7. ls:
3
8. ls -l:
9. rm:
4
12. cmp:
5
14. sort:
15. uniq:
16. du:
6
17. df:
7
Program 2
Aim: Develop a Shell Program to Display all the words which are entered as command
line arguments.
Output:
8
Program 3
Aim: Develop a shell script that Changes Permissions of files in PWD as rwx for users.
Output:
9
Program 4
Aim: Develop a shell script to print the list of all sub directories in the current directory.
Output:
2. List directories:
Output:
10
Program 5
Aim: Develop a Shell Program which receives any year from the keyboard and
determines whether the year is leap year or not. If no argument is supplied the current
year should be assumed.
Output:
11
Program-6:
P
Program
Aim: Develop a shell script which takes - 6 as arguments-If their contents are
two file names
same then delete the second file.
Output:
12
Program -7
Aim: Develop a shell script to print the given number in the reversed order.
Output:
13
Program 8
Aim: Develop a shell script to print first 25 Fibonacci numbers.
Output:
14
Program 9
Aim: Develop a shell script to print the Prime numbers between the specified range.
Output:
15
Program 10
Aim: Develop a shell script to delete all lines containing the word ‘unix’ in the files
supplied as arguments.
Output:
16
Program 11
Aim: Develop a shell script Menu driven program which has the following options.
i) contents of /etc/passwd
ii) list of users who have currently logged in.
iii) present working directory.
iv) exit.
Output:
17