You are on page 1of 4

INDEX

Basic Linux Command


S.No Name of Experiment Page. No Date Teachers Sign.
1. Mkdir Command 1

2. ls command 2-3

3. Cd 4

4. Rmdir 5-6

5. pwd 7

6. cat command 8 – 11

7. Cp command 12 - 13

8. rm command 14

9. mv command 15 - 16

10. Head command 17-18

11. tail command 19 – 21

12. Ps command 22

13. Date command 23 - 25

14. Calendar command 26 - 27

15. Wc command 28

16. Echo command 29

17. Touch command 30 – 31

18. Clear command 32

19. Whoami command 33


20. Chmod command 34 - 35

21. Man command 36

22. Vi command 37

23. Shell script 38

24. expr command 39-40

25. test command 41 - 42

26. Who command 43

27. Exit command 44

INDEX
Linux Shell Programming
S.No Name of Experiment Page. No Date Teachers Sign.
1. Write a shell script for addition, subtraction, 45
multiplication, division, modulo division?
2. Write a Linux shell script to check the given year is 46
leap year?
3. Write a Linux shell script to check given number is 47
prime or not?
4. Write a Linux shell script for Fibonacci series? 48
5. Write a Linux shell script to calculate factorial of 49
given number?

6. Write a Linux shell script for Armstrong number? 50


7. Write a Linux shell script to check largest no of three 51
number?
8. Write a shell script to see date, time, username, 52
current directory?
9. Write a Linux shell script to swapping variable? 53
10. Write a Linux shell script to check given no odd or 54
even?
11. Write shell script to find multiplication table using 55
for loop?

12. Write a Linux shell script to print employee payroll 56


(basic, DA, HRA, PF, Gross salary, Net Salary)?

13. Write a Linux shell script to perform all arithmetic 57


operation using command line argument?

14. Write a shell script to accept character and check for 58


following?
• If user enter character (A-Z) then show upper
case letter.
• If user enter character (a-z) then show lower case
letter.
• If user enters digital no (0-9) then show digital
number.
*, $, #, @ show its special character.

15. Write a Linux shell script show various system 59


configurations?
• Currently log user and His/her login name.
• Your current shell.
• Your current directory.
• Your operating system type.
• Show mouse setting.
• Show keyboard
• Show network setting.
• Show Path
• currently logged number of users

16. Write a shell script to check given name is a file or a 60


directory or special file or not?

17. Write a shell script to determine whether given file 61


exist or not, existing file name supplied by command
line argument also check for sufficient no of
command line argument?

18. Write shell script to copy the content is one file to 62


another file?
19. Write a shell script to print addition of given of all 63
digits?

20. Write a shell script to search element present in list 64-66


or not. (Binary & Linear Search)

21. Write a shell script for bubble & selection sort. 67-69

22. Write a Linux shell script to sort the given no in 70-71


ascending or descending orders?

23. Write a Linux shell script to implement read, write 72-73


and execute permission?

24. Write a Linux shell script to print the following 74


pattern?
1
22
333
4444
55555

25. Write a Linux script to print the following pattern 75


using for loop?
*
* *
* * *
* * * *
* * * * *
* * * *
* * *
* *
*

26. Write a Linux shell script to implement break & 76


continue statement?

27. Write a Linux shell script to calculate area of circle & 77


rectangle?
28. Write a Linux shell script to count no of file in 78
directory?

29. Write a shell script to generate all combination of 1, 2 79-8-


and 3.
30. Write a shell script to check given string or number is 81
palindrome or not?

You might also like