UNIT I Linux Utilities

Similar documents
UNIT I Linux Utilities and Working with Bash

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) DUNDIGAL, HYDERABAD

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

St. MARTIN S ENGINEERING COLLEGE Dhulapally,Secunderabad DEPARTMENT OF INFORMATION TECHNOLOGY Academic year

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

II/IV B.Tech. DEGREE EXAMINATIONS, NOV/DEC-2017

SIDDHARTH GROUP OF INSTITUTIONS :: PUTTUR Siddharth Nagar, Narayanavanam Road QUESTION BANK (DESCRIPTIVE) UNIT I OPERATING SYSTEMS

Advanced Programming in the UNIX Environment W. Richard Stevens

Exam Guide COMPSCI 386

CL020 - Advanced Linux and UNIX Programming

CHETTINAD COLLEGE OF ENGINEERING AND TECHNOLOGY DEPARTMENT OF MCA QUESTION BANK UNIT 1

Processor : Intel Pentium D3.0 GigaHtz

Building blocks for Unix power tools

VALLIAMMAI ENGINEERING COLLEGE. SRM Nagar, Kattankulathur QUESTION BANK

Overview. Over the next four weeks, we will look at these topics: Building Blocks. Advanced Authentication Issues.

KINGS COLLEGE OF ENGINEERING DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING ACADEMIC YEAR / ODD SEMESTER

Noorul Islam College Of Engineering, Kumaracoil MCA Degree Model Examination (October 2007) 5 th Semester MC1642 UNIX Internals 2 mark Questions

Software Development & Education Center

LINUX INTERNALS & NETWORKING Weekend Workshop

SHRI ANGALAMMAN COLLEGE OF ENGINEERING AND TECHNOLOGY (An ISO 9001:2008 Certified Institution) SIRUGANOOR, TIRUCHIRAPPALLI

Community Enterprise Operating System (CentOS 7) Courses

Department of Computer Science and Technology, UTU 2014

Roll No. :... Invigilator's Signature : UNIX AND SHELL PROGRAMMING. Time Allotted : 3 Hours Full Marks : 70

PROGRAMME: COMPUTER SCIENCE & ENGINEERING COURSE: Operating System Lab SEMESTER: VI CREDITS: 2

1. Draw and explain program flow of control without and with interrupts. [16]

PROCESS CONCEPTS. Process Concept Relationship to a Program What is a Process? Process Lifecycle Process Management Inter-Process Communication 2.

Design Overview of the FreeBSD Kernel CIS 657

Reading Assignment 4. n Chapter 4 Threads, due 2/7. 1/31/13 CSE325 - Processes 1

BASH SHELL SCRIPT 1- Introduction to Shell

Mid Term from Feb-2005 to Nov 2012 CS604- Operating System

Problem Set: Processes

CHAPTER NO - 1 : Introduction:

Introduction to Unix. Jin-Soo Kim Computer Systems Laboratory Sungkyunkwan University

CPS 310 first midterm exam, 2/26/2014

Virtual File System. Don Porter CSE 306

ECE 650 Systems Programming & Engineering. Spring 2018

Introduction to Software Engineering: The evolving role of software, Changing Nature of Software, Software myths.

(MCQZ-CS604 Operating Systems)

VEOS high level design. Revision 2.1 NEC

Design Overview of the FreeBSD Kernel. Organization of the Kernel. What Code is Machine Independent?

PROCESS MANAGEMENT. Operating Systems 2015 Spring by Euiseong Seo

SNS COLLEGE OF ENGINEERING

Subject: Operating System (BTCOC403) Class: S.Y.B.Tech. (Computer Engineering)

Problem Set: Processes

Unix Processes. What is a Process?

Kernel Internals. Course Duration: 5 days. Pre-Requisites : Course Objective: Course Outline

Unix System Architecture, File System, and Shell Commands

1. Unix Interview Questions You Should Be Ready For What is UNIX? How is UNIX different from Linux? What is a kernel?

ECE 550D Fundamentals of Computer Systems and Engineering. Fall 2017

Chapter 4: Threads. Operating System Concepts. Silberschatz, Galvin and Gagne

CSC209: Software tools. Unix files and directories permissions utilities/commands Shell programming quoting wild cards files

CSC209: Software tools. Unix files and directories permissions utilities/commands Shell programming quoting wild cards files. Compiler vs.

Babu Madhav Institute of Information Technology, UTU

QUESTION BANK ON UNIX & SHELL PROGRAMMING-502 (CORE PAPER-2)

PESIT Bangalore South Campus

R10. IV B.Tech II Semester Regular Examinations, April/May UNIX AND SHELL PROGRAMMING

Department of Computer Science and Technology

CS 350 : COMPUTER SYSTEM CONCEPTS SAMPLE TEST 2 (OPERATING SYSTEMS PART) Student s Name: MAXIMUM MARK: 100 Time allowed: 70 minutes

IBM AIX Operating System Courses

Chap 4, 5: Process. Dongkun Shin, SKKU

Operating Systems. II. Processes

Useful Unix Commands Cheat Sheet

Teaching and Examination Scheme: PAPER HRS TH TU PR TH PR OR TW TOTAL

Operating Systems. Review ENCE 360

Process. Program Vs. process. During execution, the process may be in one of the following states

Name of chapter & details

Virtual File System. Don Porter CSE 506

QUESTION BANK UNIT I

Command-line interpreters

Introduction. Yolanda Becerra Fontal Juan José Costa Prats

Killing Zombies, Working, Sleeping, and Spawning Children

What is a Process? Processes and Process Management Details for running a program

CSC209 Review. Yeah! We made it!

NETWORK PROGRAMMING AND MANAGEMENT 1 KINGS DEPARTMENT OF INFORMATION TECHNOLOGY QUESTION BANK

CSE 410: Systems Programming

Design and Implementation of the MTX Operating System

Department of Information Technology Operating Systems Question Bank YEAR/SEM:III/V

MARUTHI SCHOOL OF BANKING (MSB)

* What are the different states for a task in an OS?

Department of Computer applications. [Part I: Medium Answer Type Questions]

Lecture 17. Log into Linux. Copy two subdirectories in /home/hwang/cs375/lecture17/ $ cp r /home/hwang/cs375/lecture17/*.

PROCESS CONTROL BLOCK TWO-STATE MODEL (CONT D)

ADVANCED OPERATING SYSTEMS

4. System Functions and Subroutines

BIRLA INSTITUTE OF TECHNOLOGY AND SCIENCE, Pilani Pilani Campus Instruction Division

Implementation of a simple shell, xssh

OS Structure, Processes & Process Management. Don Porter Portions courtesy Emmett Witchel

COSC243 Part 2: Operating Systems

2. UDP Client, UDP Server

Mastering Linux. Paul S. Wang. CRC Press. Taylor & Francis Group. Taylor & Francis Croup an informa business. A CHAPMAN St HALL BOOK

Operating Systems Overview. Chapter 2

Linux Driver and Embedded Developer

CHAPTER 3 - PROCESS CONCEPT

Unix as a Platform Exercises. Course Code: OS-01-UNXPLAT

Chapter 3: Process Concept

Outline. Relationship between file descriptors and open files

CS 450 Operating System Week 4 Lecture Notes

RCU. ò Dozens of supported file systems. ò Independent layer from backing storage. ò And, of course, networked file system support

System Administration

Transcription:

UNIT I Linux Utilities 1. a) How does Linux differ from Unix? Discuss the features of Linux. 5M b) Explain various text processing utilities, with a suitable example for each. 5M 2. a) Explain briefly about text processing and process utilities in Linux. 5M b) Write a short note on AWK command. 5M 3. a) List and explain various networking commands. 5M b) What is a filter? Explain its role in linux programming. 5M 4. a) Explain various process and disk utilities. 5M b) Discuss the commands used to achieve files and compress the contents of file in detail. 5M 5. a) Explain various file permissions in Linux. 5M b) Explain various characteristics of Linux. 5M 6. a) List and explain the various disk utility commands. 5M b) Explain with syntax of various backup utilities with examples. 5M 7. Explain in detail about awk. 10M 8. Explain in detail about sed. 10M 9. Explain the various usages of cat command. Also explain the file permissions in Linux. 10M 10. Explain the substitution command of sed in Linux. 10M Linux Programming Page 1

UNIT II Working with Bash 1. a) Describe the responsibilities of a shell. 5M b) write a shell script to generate first n prime numbers. 5M 2. Write shell scripts which work similar to the following commands 10M a) head b) tail c) more 3. a) Define shell. Explain how a shell variable can be defined and initialized. 5M b) Write a shell script to delete duplicate files in the directory. 5M 4. a) Write a shell script to find whether number is prime or not. 5M b) Discuss in detail about input and output redirections. 5M 5. a) Write a short note on the responsibilities of a shell. 5M b) Write a shell script to compute first n positive numbers sum and average values. 5M 6. a) Write a shell program to find the factorial of a given number. 5M b) Write short notes on here documents. 5M 7. Explain about the variable, file name, command substitutions in detail. 10M 8. Explain the control structures of shell in linux. 10M 9. Explain the arithmetic operators in shell. Also write a shell program to find the sum of two numbers. 10M 10. Explain the number, string, file comparison operators of shell in linux. 10M Linux Programming Page 2

UNIT III Linux Files 1. a) With a neat sketch, explain the Linux file system layout. 5M b) write the following in brief: 5M i) Record locking ii) System calls iii) chmod 2. a) Describe the file system structure and different file types in linux. 5M b) Compare hard links with soft links. 5M 3. Explain the following system calls: 10M a) fcntl b) lseek c) read d) write 4. Write the following in brief: 10M a) File descriptors b) Record locking c) Symlink 5. Write the syntax of following system calls: 10M a) open b) read c) chmod d) opendir e) chown 6. a) Define inode and discuss various file types used in linux for accessing files 5M b) Write short notes with their syntax for the following: 5M i) getcwd ii) readdir iii) fseek 7. a) Draw and explain the structure of typical file system. 5M b) Give brief description on low level file access. 5M 8. Explain the scanning directories in linux. 10M 9. Explain the file and the record locking in linux. 10M 10. Explain the following in brief: 10M a) mkdir b) rmdir c) chdir d) getcwd Linux Programming Page 3

UNIT IV Linux Process 1. a) Explain the process states in linux. 5M b) Discuss any three system calls for process management and explain. 5M 2. a) List the differences in using fork() and vfork() system calls. 5M b) Write a short note on kill() and raise() functions. 5M 3. a) Draw and explain the structure of a typical process. 3M b) Distinguish between fork and vfork. 3M c) Write short notes on orphan process. 4M 4. a) How processing of states can be performed in linux? 5M b) Explain how zombie process is created in linux. 5M 5. Explain the following system calls: 10M a) fork b) vfork c) wait d) exec 6. a) Explain the steps of how kernel supports a process. 5M b) What is zombie process? Explain how zombie process can be removed from a system. 5M 7. Explain the following system call interfaces: 10M a) wait b) exit c) exec d) fork 8. Explain about the zombie process and orphan process. 10M 9. Explain the process control in brief. 10M 10. Write a program to create the zombie process. 10M Linux Programming Page 4

UNIT V Linux Signals 1. a) What is the difference between reliable and unreliable signals? Explain with example. 5M b) Write and explain the mechanism of handling a signal. 5M 2. Explain the following: 10M a) kill b) raise c) alarm d) abort e) sleep 3. a) What is a signal? Discuss the signals SIGKILL and SIGSTOP. 5M b) Explain the reliable and unreliable signals in brief. 5M 4. a) In linux how to generate and handle signals. 5M b) Write a c program to illustrate kill() and raise() system calls. 5M 5. a) What are the functions of signal? 5M b) What are unreliable signals? 5M 6. a) What is a signal? Discuss the signals SIGKILL and SIGSTOP and explain. 5M b) How linux signals are processed inside the kernel? Explain. 5M 7. a) Discuss in detail about the reliable signals. 5M b) Write short notes on the kernel support for signals. 5M 8. Explain the signal functions in detail. 10M 9. Explain the process of generating and handling the signals. 10M 10. List the different signals in linux. Also explain it briefly. 10M Linux Programming Page 5

UNIT VI Interprocess communication 1. a) What is a pipe? Explain the process of calling a pipe? 5M b) What is message queue? Explain. 5M 2. a) Explain the advantages of FIFOs over pipes. 5M b) Write a C program to illustrate two way communication using FIFOs. 5M 3. a) Explain the file locking with respect to semaphores. 5M b) Write short notes on IPC by using message queues. 5M 4. Explain the following IPC briefly: 10M a) FIFO b) Shared Memory c) Message Queues 5. Explain in detail about Linux APIs for shared memory. 10M 6. a) Explain how pipes are used as a standard input and output. 5M b) Explain shared memory and its usage by a number of processes. 5M 7. a) What is IPC? Explain it by using FIFO s. 5M b) Explain IPC between two processes present in different systems. 5M 8. Explain the semaphores in detail. 10M 9. Explain the shared memory in detail. 10M 10. Explain the message queues in detail. 10M Linux Programming Page 6

UNIT VII Multithreaded Programming 1. a) What is meant by synchronization? How synchronization is achieved with semaphores? 5M b) Explain the structure of a thread. Discuss its uses. 5M 2. a) Draw and explain life cycle of thread. 5M b) Explain the synchronization of threads by using mutexes. 5M 3. a) Differentiate between thread and light weight process. 5M b) Explain how semaphores are used to control thread operation on shared data. 5M 4. a) What is a thread? Explain about its structure and uses. 5M b) Write a short note on mutexes. 5M 5. a) How mutexes are used to prevent data inconsistency? Explain. 5M b) Explain various multithreading models in detail. 5M 6. a) Distinguish between threads and processes. 5M b) Discuss in detail about the POSIX thread API. 5M 7. a) What is meant by Synchronization? How synchronization is achieved with semaphores? 5M b) Explain the multithreading models with examples. 5M 8. Explain the thread synchronization with semaphores. 10M 9. Explain the POSIX thread APIs in detail. 10M 10. Explain the creation of threads and thread attributes of POSIX thread. 10M Linux Programming Page 7

UNIT VIII Sockets 1. Write and explain the program for client/server communications using sockets. 10M 2. Explain briefly the following with syntax: 10M a) Socket b) connect( ) c) accept( ) d) send( ) 3. Write and explain the steps to be followed for creating the server application. 10M 4. Write short notes on connectionless protocols for sockets. 10M 5. a) What is a socket? Explain various data types used by the sockets interface. 5M b) Differentiate between connection oriented and connectionless protocol. 5M 6. Explain the socket interfaced and features of TCP connection. 10M 7. Draw and explain the typical client/server model. 10M 8. Explain the process of creating client/server communication in Connection oriented model. 10M 9. Explain the process of creating client/server communication in Connectionless model. 10M 10. Explain the Socket APIs in detail. 10M Linux Programming Page 8