Jawaharlal Nehru Technological University Hyderabad
Jawaharlal Nehru Technological University Hyderabad B.Tech IV LINUX PROGRAMMING Previous Question Paper (September - 2022 - R16)
Answer any five questions
All questions carry equal marks
Main
List the important features of Linux operating system.
Answer
Linux is a powerful, open-source operating system known for its stability and flexibility. Key features include:
- Open Source: The source code is freely available, allowing users to modify and distribute it.
- Multi-user capability: Multiple users can access system resources simultaneously without interfering with each other.
- Multi-tasking: Linux supports running multiple processes or applications concurrently.
- Security: It provides robust security through user authentication, file permissions, and encryption.
- Hierarchical File System: Linux organizes files in a tree-like structure starting from the root directory (/).
- Shell: It provides a command-line interface (shell) that acts as an interpreter between the user and the kernel.
- Portability: Linux can run on various hardware platforms, from embedded systems to supercomputers.
Explain various file handling utilities with syntax and examples.
Answer
File handling utilities in Linux are essential for managing data and system files. Common utilities include:
- cat: Used to display, create, or concatenate files.
Syntax:cat [filename]
Example:cat file1.txtdisplays content of file1.txt. - cp: Used to copy files or directories.
Syntax:cp [source] [destination]
Example:cp file1.txt file2.txtcreates a copy of file1 named file2. - mv: Used to move or rename files and directories.
Syntax:mv [source] [destination]
Example:mv oldname.txt newname.txtrenames the file. - rm: Used to remove or delete files.
Syntax:rm [filename]
Example:rm temp.txtdeletes temp.txt. - head / tail: Used to display the beginning or end of a file.
Syntax:head -n [lines] [filename]
Example:tail -n 5 log.txtshows the last 5 lines of log.txt. - chmod: Used to change file access permissions.
Syntax:chmod [mode] [filename]
Example:chmod 755 script.shsets read, write, and execute permissions.
What is a shell? Give the list of shell responsibilities.
Answer
Sign in to view the complete answer paper.
Write a shell script to display the multiplication table.
Answer
Sign in to view the complete answer paper.
Give an overview on Linux file system structure.
Answer
Sign in to view the complete answer paper.
Give a detailed note on system calls for file input/output operations in Linux.
Answer
Sign in to view the complete answer paper.
Explain Linux’ kernel support for files.
Answer
Sign in to view the complete answer paper.
Explain the systems calls for creating, removing and changing directories with the help of syntax and examples.
Answer
Sign in to view the complete answer paper.
Distinguish between threads and processes.
Answer
Sign in to view the complete answer paper.
Give an overview of signal generation and handling in Linux.
Answer
Sign in to view the complete answer paper.
Give a detailed note on system calls for process management in Linux.
Answer
Sign in to view the complete answer paper.
Explain how inter process communication is handled through pipes in Linux using an example.
Answer
Sign in to view the complete answer paper.
Explain bind and connect system calls.
Answer
Sign in to view the complete answer paper.
Explain the general scheme of using shared memory.
Answer
Sign in to view the complete answer paper.