0% found this document useful (0 votes)
7 views2 pages

Comprehensive UNIX Programming Question Bank

The document is a question bank for a Unix Programming course (BCI24306A) divided into two modules. Module-1 covers key features, architecture, commands, file navigation, and environment variables in UNIX. Module-2 focuses on file permissions, standard files, shell scripting, and regular expressions.

Uploaded by

Vinnavan
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)
7 views2 pages

Comprehensive UNIX Programming Question Bank

The document is a question bank for a Unix Programming course (BCI24306A) divided into two modules. Module-1 covers key features, architecture, commands, file navigation, and environment variables in UNIX. Module-2 focuses on file permissions, standard files, shell scripting, and regular expressions.

Uploaded by

Vinnavan
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

Unix Programming (BCI24306A)

Question Bank

Module-1

1. List any four key features of the UNIX operating system.


2. Explain the architecture of UNIX with a neat diagram.
3. Define POSIX. How does it contribute to UNIX standardization?
4. Differentiate between internal and external commands with examples.
5. Explain the structure of a UNIX command with syntax, arguments, and options.

6. Describe the use and output of the commands: echo, who, cal, and passwd.
7. Demonstrate how the type command helps in identifying command types.
8. Explain the concept of the home directory and the use of the HOME environment
variable.
9. Compare absolute and relative pathnames with appropriate examples.
10. What are hidden files? How can they be created and viewed in UNIX?
11. Demonstrate the use of pwd, cd, mkdir, and rmdir commands in file navigation.
12. Explain the significance of the PATH variable and how it can be manipulated.
13. Write commands to create a file, copy it, rename it, and delete it using cat, cp, mv, rm.
14. Use wc and od commands on a file and explain the output format.

Module-2

1. Explain the output of ls -l and describe each field.


2. Demonstrate how to change file permissions using symbolic (relative) mode.
3. Explain how to recursively change permissions in directories using chmod.
4. What are the three standard files in UNIX? Explain redirection with examples.
5. Explain wildcard characters used in UNIX with examples.
6. Write a command pipeline to display users sorted alphabetically from who command.
7. What is the difference between grep and egrep? Give two examples each.
8. Define regular expressions. Write three expressions using grep.
9. Explain the role of environment and ordinary variables in shell programming.
10. What is the purpose of .profile file in shell?
11. Write a shell script that accepts two numbers and prints the greater number.
12. Demonstrate the use of if, while, and for loops in shell scripting with syntax.
13. Explain the use of set, shift, and positional parameters with examples.
14. Write a script using here-document (<<) to print a formatted message.

You might also like