Question Bank

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Question Bank

Course Name: UNIX System Programming Course Code: BCS515C

Module-1

1. List and explain the salient features of UNIX operating system?


2. With a neat diagram, explain the Kernel and Shell relationship in UNIX operating system?
3. Illustrate UNIX architecture with a neat diagram?
4. What are Internal and External commands in UNIX? Explain them with suitable example?
5. Differentiate between Internal and External commands in UNIX operating system with example?
6. Explain the basic file categories in UNIX operating System?
7. Explain the parent-child relationship in UNIX file system?
8. With neat diagram, explain UNIX file system and also explain different types of files supported in
UNIX?
9. Illustrate command structure usage and behavior with respect to absolute and relative pathnames
of the following commands with suitable examples.
1. mkdir 2. rmdir
10. Explain the following with syntax, option and an example.

1. cp 2. rm 3. mv 4. cat 5. wc 6. od 7. printf

11. Explain the significance of dot(.) and double dot(..) with respect to directory? Give the output of
the commands:

1. ls – ld. 2. ls -l

12. Explain with suitable example for the following commands:


1. pwd 2. cd 3. echo 4. who 5. date 6. passwd

13. Define pathname? List and Explain types of pathnames with examples.

14. With suitable example bring out the differences between absolute and relative pathnames?

15. Explain to become superuser? How to add users to groups, how to delete users from groups, how
to create and delete users from groups.

16. Explain any five file related commands with an example?


Module - 2

1. Which command is used for listing of file attributes? Explain the significance of each field in the
attributes?

2. Explain ls command with all options?

3. What are file permissions? Explain the use of chmod to change file permissions using both
absolute and relative pathnames?

4. What is shell? Briefly explain shell interpretive cycle?

5. Current file permission of a regular file “unix” are rw—w---x. Illustrate both relative and absolute
methods required to change permission to the following:
1. – w x r w x r - x 2. r - - - - - - - x 3. – w – r – x – w - 4. – x r w – r - -

6. File current permissions are rw-r-xr--, specify chmod expression required to change for the
following using both relative and absolute methods:
1. r w x r w x r w x 2. r - - r - - - - - 3. - - - - - - - - - 4. - - - r - - r - - 5. - - - - - x – w –

7. Explain the use of chmod command to change file permission using both absolute and relative
method.

8. Explain changing the ownership of a file with an example?

9. Define wildcards? Explain various shell wild cards with suitable example.

10. Explain the concept of escaping and quoting with suitable example?

11. Explain the three standard files supported in UNIX?

12. Explain the concept of pipes with a suitable example?

13. What is the output of the following?


1. ls [ijk] * doc 2. [A - Z] ????* 3. *.[!s] [!h] 4. *[!0 – 9]

14. with the help of an example, explain grep command with all the options.

15. Briefly explain the basic regular expression (BRE) set with an example?

16. Briefly explain the extended regular expression (ERE) set with an example?

You might also like