0% found this document useful (0 votes)
73 views3 pages

Question Bank

This document contains a question bank for a UNIX programming course divided into two modules. The questions cover topics related to UNIX commands, file permissions, regular expressions, and the shell interpretive cycle. Some example questions are on explaining the relationship between the kernel and shell, listing and explaining UNIX features, using commands like ls, echo, and who, and writing the output of date commands.

Uploaded by

Riti Gowda
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
73 views3 pages

Question Bank

This document contains a question bank for a UNIX programming course divided into two modules. The questions cover topics related to UNIX commands, file permissions, regular expressions, and the shell interpretive cycle. Some example questions are on explaining the relationship between the kernel and shell, listing and explaining UNIX features, using commands like ls, echo, and who, and writing the output of date commands.

Uploaded by

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

Question Bank for UNIX Programming (18CS56)

Module 1

SL_NO Question Marks


1. Explain with a figure, the kernel and shell relationship in Unix
8
Operating System.
2. What is the use of following commands: echo, ls, who. 6
3. List and explain the salient features of Unix Operating System. 8
4. Explain the use of following commands: printf, passwd, cal. 6
5. Differentiate between internal & external commands inn unix
8
with suitable examples
6. Briefly explain HOME, PATH, wc, pwd. 6
7. Write the outputs of the following commands.
1. cal 8 1984
3
2. echo ‘Today date is ‘date’ ‘
3. date “Date is: %d %h %Y”.
8. How an ordinary user can become a super user and vice versa?
4
Explain with suitable commands.
9. Write the command line to perform the followings:
1. Change current directory to home directory. 2
2. Change to parent of parent directory.
10. Explain the different types of Unix Environment. 5
Question Bank for UNIX Programming (18CS56)

Module 2

SL_NO Question Marks


1. What is a file? Explain the three categories of files in Unix
8
operating system.
2. Explain the ls command with options. 6
3. Explain the following command with syntax, option &
6
example: mkdir, rmdir, od, mv.
4. What is parent child relationship? Explain with figure, the
6
Unix File System.
5. Explain the chmod command to change file permission using
6
both absolute and relative methods.
6. Explain the following command with syntax and example:
8
cat, rm, cp, wc
7. Evaluate the following commands and write the output.
1. grep -v “ZEE” news.txt
2. grep jai sharma emp.lst
3. grep -c member file1 4

8. What are wild cards? Explain the various shell wild cards
8
with suitable example.
9. Explain the grep command with all the options. 6
10. Apply the shell’s wild cards and write the output.
1. [a-z][1-4]*.txt
2. *.[!c][!p][!p]
3. *[0-3][A-Z] 6
4. chap* [!0-9]
5. chap[0-1][0-9]

11 Explain the following command with example.


1. cd
2. pwd 5
3. rmdir
4. wc
12 Which command is used for listing file attributes? Explain
8
the significance of each field in the output.
13 Explain the following commands with an example for each.
1. cp
2. rm 4
3. mv
4. cat
Question Bank for UNIX Programming (18CS56)

14 Current file permissions of a regular file “unix” are rw_ _w_ _


_ x. write chmod expressions required to change it to the
following:
1. _wxrwxr_x
2. _ _ _r_xrw_ 8
3. rwx_ _x_ _ _
4. r_ _ _wx_ _ _.
Using both relative and absolute methods of assigning
permissions.
15 Briefly explain the Basic Regular Expressions & Extended
10
Regular Expression(ERE) meta characters.
16 Explain the concept of Escaping and Quoting with suitable
4
example.
17 Explain shell interpretive cycle. 4

You might also like