UNIX/Shell scripting Questions

Q1. What is UNIX software?
Q2. What is the vi? How do use Vi? Name 10 commands with Vi?
Q3. How many ways you can view the file content in UNIX?
Q4. Explain about Grep anf Find in UNIX with examples.
Q5. Explain about SED and AWK and five SED options and AWK options.
Q6. Explain 10 UNIX commands with options.
Q7. Explain 2 simple UNIX Shell scripts
Q8. Explain 1 simple PERL script
Q9. How to check the disk space using UNIX commands?
Q10. How to check memory utilization using UNIX commands?
Q11. How do you login to UNIX?
Q12. What are all the ways you can transfer data from one UNIX server to another UNIX server?
Q13. What is the difference between device file and ordinary file?
Q14. What is the difference between regression testing and retesting?
Q15. What is the difference between Grep and Find?
Q16. How to read last 30 lines from a file? and first 50 lines from a file?
Q17. How do I remove a file name begins with a "-"?
Q18. How do I remove a file with funny characters in the file name?
Q19. How do I get a recursive directory listing?
Q20. How do I get the current directory into my prompt?
Q21. How do I read characters from the terminal in a shell script?
Q22. How do I rename "*.foo" to ".bar", or change file names to lower case?
Q23. Why do I get [some strange error message] when I "rsh host command"?
Q24. How do I {set an environment variable, change directory} inside a program or shell script and have that change affect my current shell?
Q25. How do I redirect stdout and stderr separately in csh?
Q26. How do I tell inside .cshrc if I'm a login shell?
Q27. How do I construct a shell glob-pattern that matches all files except "." and ".."?
Q28. How do I find the last argument in a Bourne shell script?
Q29. What's wrong with having "." in your $PATH?
Q30. How do I ring the terminal bell during a shell script?
Q31. Why can't I use "talk" to talk with my friend on machine X?
Q32. How are Shell variables assigned?
Q33. What are different types of editor used for shell scripting?
Q34. How do you change the ownership of a file, group, ownership, etc?
Q35. How do you test using UNIX?
Q36. How do you compare files, by using UNIX?
Q37. How will you create a comma separated files?
Q38. How do you compare content of file with end target?
Q39. What automation scripts you have written for data validation?
Q40. Which UNIX command used to clean up a file of 90 days old?
Q41. How do you automate if requirements changes from one project to other?
Q42. How do you find files which are older than 30 days?
Q43. I am loading file into teradata how do you compare in UNIX?
If there is a huge input file and output from teradata is also huge how do you work?
Q44. Have you done any sql query validations?
Q45. How do you check in UNIX to know Informatica workflows are success or failure?
Q46. We use $ options 0 -- succes, 1 -- fail.
There is a directory in UNIX. Give command to find which are directory and which are files.
Q47. How to find only sub-directory in the directory
Q48. They are 100's of files. Give me a UNIX command to delete files which are more than 100 KB.

No comments:

Post a Comment