0% found this document useful (0 votes)
250 views1 page

Unix and Shell Programming Important Questions

This document contains important questions about Unix and shell programming including questions about the kernel, head and tail commands, features of Unix, writing shell scripts to count lines, explain cp, rm, and cat commands, process utilities, filters and pipes, sort command, sed commands, checking login status, differentiating sed and awk, associative arrays, exit statuses, arithmetic operations, C shell features, reversing strings, file operations, and printing file contents in reverse order.

Uploaded by

Miriam Shanti
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
250 views1 page

Unix and Shell Programming Important Questions

This document contains important questions about Unix and shell programming including questions about the kernel, head and tail commands, features of Unix, writing shell scripts to count lines, explain cp, rm, and cat commands, process utilities, filters and pipes, sort command, sed commands, checking login status, differentiating sed and awk, associative arrays, exit statuses, arithmetic operations, C shell features, reversing strings, file operations, and printing file contents in reverse order.

Uploaded by

Miriam Shanti
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

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.

You might also like