Unix and Shell Programming Important Questions
What is kernel? Is it similar to the operating system? Explain.
Differentiate between head and tail.
Explain the features of Unix.
Write a shell script to count no of lines for a given file without
using wc commands.
Explain the commands cp, rm and cat with examples.
Explain about process utilities.
Write a shell script for the following
i) for display only the lines which are containing the word
“unix”.
ii) For display only duplicate lines in a file.
iii) For display only 3 and 6 fields in a file.
iv) For display particular user files only.
What is filter and pipes? Explain with example.
Discuss about the sort command with examples.
Explain about the various operations of sed commands.
Write a shell script checking whether “rama” was logged in or
not.
Differentiate between sed and awk.
What is meant by associate arrays? Discuss.
How to find the exit status of a command? Discuss.
Write a shell script for performing the arithmetic operations.
Explain about the features of C shell.
Write a shell script to print the reverse sting on the screen.
Explain any four operations that can be performed on a file.
Write a program to print file contents in reverse order.