Anda di halaman 1dari 2

LIST OF EXPERIMENTS 1.

Write and execute the following general purpose commands: (i) date (ii) cal (iii) echo (iv) clear (v) bc (vi) who (vii) who am i (viii) uname 2. Write and execute the following directory commands: (i) Create a directory. (ii) Change the current working directory as the newly created directory. (iii) List the number of files in the directory. (iv) List the hidden files. (v) Remove the directory. 3. Write and execute the following file commands: (i) Create a file. (ii) Display the content of the file. (iii) Copy the old file in a new file. (iv) Rename a file. (v) Remove a file. (vi) Count the number of lines, words and characters of a file. 4. Write and execute the following pattern searching commands: (i) grep (ii) egrep (iii) fgrep

5. Write a shell script to perform swapping of two numbers. 6. Write a shell script to perform simple arithmetic operations. 7. Write a shell script to calculate simple interest. 8. Write a shell script to calculate square and cube of a number. 9. Write a shell script to check whether the given number is positive, negative or zero. 10. Write a shell script to calculate sum of n natural numbers. 11. Write a shell script to calculate the length of a string. 12. Write a shell script to calculate HRA of employees. 13. Write a shell script to find the number of digits of the given number.

14. Write a shell script to calculate sum of digits of the given number.\ 15. Write a shell script to perform string comparison. 16. Write a shell script to count and calculate sum of odd and even numbers. 17. Write a shell script to find whether the given number is Armstrong or not. 18. Write a shell script to find the factorial of a given number. 19. Write a C program to perform linear search. 20. Write a C program to perform binary search. 21. Write a C program to display array elements using pointer. 22. Write a C program using pointer to access elements. 23. Write a C program to find the length of the given string ANNAMALAIAR COLLEGE OF ENGINEERING using pointer. 24. Write a C program to display the given string COMPUTER using function. 25. Write a C program to sort names using strcpy() function. 26. Write a C program to print n number of strings using command line argument. 27. Write a C program to calculate the sum of n numbers using command line argument. 28. Write a C program to generate Fibonacci series using function. 29. Write a C program to check whether the given number is palindrome or not. 30. Write a C program to check whether the given string is palindrome or not. 31. Write a C program to generate student marklist using pointer. 32. Write a C program to solve Tower of Honai problem. 33. Write a C program to transfer structure to a function. 34. Write a C program to alter allocated memory. 35. Write a C program to copy the content of one string to another. 36. Write a C program to count the number of characters and lines present in a file.

Anda mungkin juga menyukai