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

Similar documents
WRITE COMMANDS USING sed or grep (1 mark each) 2014 oct./nov march/april Commands using grep or egrep. (1 mark each)

Table of contents. Our goal. Notes. Notes. Notes. Summer June 29, Our goal is to see how we can use Unix as a tool for developing programs

UNIX ASSIGNMENT 1 TYBCA (Sem:V)

Linux & Shell Programming 2014

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

On successful completion of the course, the students will be able to attain CO: Experiment linked. 2 to 4. 5 to 8. 9 to 12.

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

5/8/2012. Exploring Utilities Chapter 5

2) clear :- It clears the terminal screen. Syntax :- clear

Introduction p. 1 Who Should Read This Book? p. 1 What You Need to Know Before Reading This Book p. 2 How This Book Is Organized p.

Useful Unix Commands Cheat Sheet

Computer Systems and Architecture

Set 1 MCQ Which command is used to sort the lines of data in a file in reverse order A) sort B) sh C) st D) sort -r

PESIT Bangalore South Campus

Common File System Commands

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Introduction to Linux

Files and Directories

Linux Shell Script. J. K. Mandal

M.C.A. (Sem.-lll) (CBCS) Examination November CCA-3003 Operating System and LinuxlUnix programming

Computer Systems and Architecture

LOG ON TO LINUX AND LOG OFF

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

ADVANCED LINUX SYSTEM ADMINISTRATION

for more :-

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

Unix Internal Assessment-2 solution. Ans:There are two ways of starting a job in the background with the shell s & operator and the nohup command.

5/20/2007. Touring Essential Programs

A Brief Introduction to the Linux Shell for Data Science

Part 1: Basic Commands/U3li3es

System Administration

Perl and R Scripting for Biologists

Introduction to UNIX. Introduction. Processes. ps command. The File System. Directory Structure. UNIX is an operating system (OS).

Introduction to UNIX. CSE 2031 Fall November 5, 2012

File permission u owner of file/directory (user) g group of the file/directory o other a all

Unix Guide. Meher Krishna Patel. Created on : Octorber, 2017 Last updated : December, More documents are freely available at PythonDSP

Shells and Shell Programming

Linux & Shell Programming 2014

CSC209H Lecture 1. Dan Zingaro. January 7, 2015

Files

Unix/Linux Basics. Cpt S 223, Fall 2007 Copyright: Washington State University

Shells and Shell Programming

DEPARTMENT OF COMPUTER APPLICATIONS SRM INSTITUTE OF SCIENCE AND TECHNOLOGY SRM NAGAR, KATTANKALATHUR

Operating Systems. Copyleft 2005, Binnur Kurt

Introduction to Linux (Part I) BUPT/QMUL 2018/03/14

Operating Systems 3. Operating Systems. Content. What is an Operating System? What is an Operating System? Resource Abstraction and Sharing

Unix Processes. What is a Process?

Introduction to UNIX. Introduction EECS l UNIX is an operating system (OS). l Our goals:

Common UNIX Utilities Alphabetical List

Getting your department account

Operating Systems Lab 1 (Users, Groups, and Security)

3/8/2017. Unix/Linux Introduction. In this part, we introduce. What does an OS do? Examples

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

Practical Session 0 Introduction to Linux

hash Remember the full pathname of a name argument head Output the first part of file(s) history Command History hostname Print or set system name

The UNIX Shells. Computer Center, CS, NCTU. How shell works. Unix shells. Fetch command Analyze Execute

Introduction to UNIX. Logging in. Basic System Architecture 10/7/10. most systems have graphical login on Linux machines

Chapter-3. Introduction to Unix: Fundamental Commands

Unix System Architecture, File System, and Shell Commands

Basic UNIX Commands BASIC UNIX COMMANDS. 1. cat command. This command is used to create a file in unix. Syntax: $ cat filename

Introduction To Linux. Rob Thomas - ACRC

Shell Programming Overview

List of Linux Commands in an IPm

Command-line interpreters

d. Permissions 600 on directory dir and 300 on file dir/foo. c. Permissions 700 on directory dir and 200 on file dir/foo.

Introduction to remote command line Linux. Research Computing Team University of Birmingham

CSE 390a Lecture 2. Exploring Shell Commands, Streams, Redirection, and Processes

Linux Command Line Primer. By: Scott Marshall

Unix Introduction to UNIX

Course 144 Supplementary Materials. UNIX Fundamentals

UNIX COMMANDS AND SHELLS. UNIX Programming 2015 Fall by Euiseong Seo

CSE 303 Lecture 2. Introduction to bash shell. read Linux Pocket Guide pp , 58-59, 60, 65-70, 71-72, 77-80

IMPORTANT: Logging Off LOGGING IN

EECS 2031E. Software Tools Prof. Mokhtar Aboelaze

LAB 8 (Aug 4/5) Unix Utilities

Introduction to Linux

Introduction to the UNIX command line

Essential Unix (and Linux) for the Oracle DBA. Revision no.: PPT/2K403/02

Shell. SSE2034: System Software Experiment 3, Fall 2018, Jinkyu Jeong

UNIX Shell Programming

Basic Linux (Bash) Commands

Shells. A shell is a command line interpreter that is the interface between the user and the OS. The shell:

CS370 Operating Systems

Scripting Languages Course 1. Diana Trandabăț

The Unix Shell & Shell Scripts

Introduction: What is Unix?

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

bash, part 3 Chris GauthierDickey

UNIT I Linux Utilities

Review of Fundamentals

LAB 8 (Aug 4/5) Unix Utilities

Unix Tools / Command Line

Basic UNIX Commands BASIC UNIX COMMANDS. 1. cat command. This command is used to create a file in unix. Syntax: $ cat filename

System Programming. Introduction to Unix

System Programming. Unix Shells

Contents. Note: pay attention to where you are. Note: Plaintext version. Note: pay attention to where you are... 1 Note: Plaintext version...

ITST Searching, Extracting & Archiving Data

Utilities. September 8, 2015

Midterm 1 1 /8 2 /9 3 /9 4 /12 5 /10. Faculty of Computer Science. Term: Fall 2018 (Sep4-Dec4) Student ID Information. Grade Table Question Score

Linux Shell Scripting. Linux System Administration COMP2018 Summer 2017

Transcription:

BANK ON & SHELL PROGRAMMING-502 (CORE PAPER-2) TOPIC 1: VI-EDITOR MARKS YEAR 1. Explain set command of vi editor 2 2011oct 2. Explain the modes of vi editor. 7 2013mar/ 2013 oct 3. Explain vi editor 5 2011oct 4. List the text modification command of vi editor. 2 2012oct 5. List disadvantages of vi editor 1 2011oct 6. Which command of vi editor is used to display line 2012oct/ 2/5 number before each line? 2011oct TOPIC 2: S ON SHELL MARKS YEAR 1. Explain features of Shell 7 2012,2014 2. What is shell 2 2011 3. Define a shell. Explain meta character that shell use to match files names. 4. List process execution meta-characters of shell 2 2010 5. Write a note on different role played by shell during the program execution 4/7 2010/2014 6. How can you create sub-shell? What is the difference between login shell and current shell? 1 2010 7. Explain command line interpretation of the shell. 6/5 2014/2013 8. Give the significance of special parameters used by shell. 3 2014 9. List at least two popular shells including their default prompt. 2 2013 Prepared By: Ms. Nidhi Solanki (Assist. Prof.) Page 1

TOPIC 3: DIRECTORY & FILE S: MARKS YEAR 1. Discuss relative and absolute file access permissions with example. 6 2013oct 2. What do you mean by link? Give the difference between 2013mar/ soft link & hard link. Also write disadvantages when using 5/6 2013 oct soft link. 3. What does /etc/passwd contains? 2 2014oct/ 2012oct 4. What are the importance of /tmp directory? 2 2013oct 5. Explain commands for changing file permissions and ownership. 5 2014oct 6. What is the purpose of /bin directory of Unix file system? 2 2013oct 7. 2013oct/20 Discuss relative and absolute file access permissions with 6/7/4 11oct/2010 example.(explain chmod) oct 8. Explain directory structure of. 7 2013oct 9. Which file attribute changes when you copy a file from other user account 2 2012oct 10. How can you make out whether two files are copies or links 2 2012oct 11. List the characteristics of Unix file system 2 2013oct 12. Explain the characteristics of Unix file system 7 2012oct 13. Explain types of file in Unix 6 2012oct 14. Explain commands for changing file permission and ownership 5 2012oct 15. write detail note on structure file system of Unix 7 2012oct 16. Command to update time of a file 2 2011 17. What does /etc directory contain 2 2011/2010 18. Difference between cat test and cat>test 2 2011 19. What isppurpose of. and.. 2 2011 20. Purpose of /bin directory 2 2011 21. Difference between absolute and relative path 2 2010 22. Who can change the attribute of file and directory? How 2 2010 23. How will you forcibly remove a file to which you don t have write permission? 2 2010 24. How can you identify the invisible characters in a file 1 2010 25. Purpose of /dev/null? give proper illustration 1 2010 26. Compression and archiving of file 4 2010 27. Which file is parent of all file 2 2010 Prepared By: Ms. Nidhi Solanki (Assist. Prof.) Page 2

TOPIC 4: S ON KERNEL MARKS YEAR 1. Explain functions of kernel(list functions of kernel) 7/2 list 2012,2014, 2013,2011, 2010,2010 oct 2. Explain kernel structure architecture? 4/7 2010/2014 TOPIC 5: S ON PROCESS MARKS YEAR Define process. Which command is useful to know the 1. status of process? Explain it giving example. What are the 4 2012 three phases in creation of a process? What is difference between scheduling process using 2. batch command and using at command? 2 2013/2014 3. What do you mean by Zombie state of a process? 2 2010/2012/ 2013 Which process is created by Getty process? What is 4. responsibility of getty process 2 2011/2014 What do you mean by daemon? List out them. How will 5. you kill a daemon? 2 2014/2010 6. Explain booting sequence with init process. 7 2014 7. Mechanism of process creation 4 2012 8. Explain fork() system call 2 2011 9. What are the process states in Unix 2 2011 10. How can we suspend background and foreground job 2 2010 11. What is PPID? Which process has PPID 1 2 2010 If following command run from a shell script, who will be 12. the parent and grandparent of all these processes? 2 2010 Cat f1 cut f1 sort r 13. State the purpose of n option with sed 2 2010 14. List process execution metacharacter of shell 2 2010 15. What does init do when a user logs out 1 2010 16. Define process? Which process has id PID1 2 2010 17. Write command to kill last background job 2 2010 What is job? How can you move a job from the 18. background to the background to the foreground and vice 2 2010 versa? 19. Define fork 2 2011/2012 What is job? How can we suspend a foreground and 20. background job? 2 2014 Prepared By: Ms. Nidhi Solanki (Assist. Prof.) Page 3

TOPIC 6 : PROGRAMMING CONSTRUCTS: MARKS YEAR 1. Differentiate between while and until loop? 2 2014 2. Explain for loop with an example 3/4 2014/2010 3. Explain case condition with example in shell 5 2012 4. Explain while loop in shell 2 2011 oct/2011 mar TOPIC 7 : S ON COMPONENTS OF FILE SYSTEM: MARKS YEAR 1. What is the purpose of boot block? What it consists of? 7 2014 2. Where the number of free i-nodes and data block stored? 2 2014 3. Explain the purpose of super block. 5 2010 4. What is super block consist of? 2 2011/2010 5. Explain content of I-node block 7/5 2014/2011/ 2010/4 6. Explain booting sequence with init process. 7 2013 7. The booting process of Unix. 2 2013 8. Write a detail note on I-node table. 7 2012 9. Define I-node number 2 2011 TOPIC 8 : GREP/sed UTILITY THEORY: MARKS YEAR 1. Write note on grep utility. 6 (2014) 2. Explain pattern matching features of grep utility. 3 2014/2010/ 2010 3. Explain insert append and change command of sed 2013/2010 4. Explain basic regular expression used with grep. 2 2012 5. Explain remembered pattern of sed 2 2011 6. Explain delete and write operator in sed 2 2011 7. State the purpose of n option with sed 2 2010 Prepared By: Ms. Nidhi Solanki (Assist. Prof.) Page 4

TOPIC 9 : WRITE COMMANDS (1 mark each) TOPIC 9.1 : 2014 oct./nov. Command using sed or grep 1. Display two lines starting from 7 th line of file X1. 2. Display all blank lines between line 20 and 30 of file X1. 3. Display lines beginning either with alphabet or digit fro file X1. 4. Display the line that do not contain unix 5. Display the lines which are not starting with 2 at the beginning. 6. Write a command to replace UIX OS ON LINE NO 5 TH TO 10 TH. 7. Write a command to display all file name containing only digits in a filename. 8. To list file names consist of only 4 digits. 9. To display lines beginning with alphabets of a file X1. 10. To count number of words in line 40 through 60 of file f1.txt TOPIC 9.2 : 2013 march/april commands using grep or egrep. (1 mark each) 1. Display the lines which are not starting with 2 at the beginning. 2. Display lines having exactly 50 characters of file X1. 3. Count number of blank lines in file X1. 4. Display lines having at least one * character in file X1. 5. Display lines from file X1 that containing string or unix or Unix 6. Display the directory listing. TOPIC 9.3 : 2013 oct/nov commands using grep or egrep.(1 mark each) 1. Write a command to print lines which contain Accounts. 2. Write a command to print lines which do not contain Accounts 3. Write a command to print line 10 to 15 4. Write a command to substitute doshi with desai 5. Write a command to print lines with line numbers which contains Marketing 6. Write a command to display line which starts with the Prepared By: Ms. Nidhi Solanki (Assist. Prof.) Page 5

TOPIC 9.4 : 2013 march/april commands using sed. (1 mark each) 1. Substitute endif with fi on line 10 of file X1. 2. Display two lines starting from 7 th line of file X1. 3. Display all lines before string Unix from file X! 4. Display all blank lines between line 20 and 30 of file X1. 5. Display lines beginning either with alphabet or digit from file X1. 6. Display the lines that do not contain Unix. TOPIC 9.5 : 2011 mar/apr 1. To display all lines that contains pattern bc* in a line 2. To locate lines where second and second last character of file f1 are same 3. To replace tybca with TYBCA in input file in.sh and write those lines to output file out.sh 4. To replace all occurrence of she with he and hi with hello 5. To locate lines that begin and end with.(dot) 6. To display line 5 to 15, 25 to 35 and last line of file f1. TOPIC 9.6 : 2014 march/april 1. Write a command to print first seven line of file. 2. Write a command to sort a line of file and also remove a repeated line. 3. Replace all occurrences of SYBCA with TYBCA in 5 th line of file f1. 4. Count all occurrence of tybca in studlst. 5. Replace kernel with kernel architecture using remember pattern of sed utility. 6. To run a utility x1 at 9:00 AM. 7. Write a command to locate the Unix ignoring case. 8. Write a command to display occurrence of string tybca. 9. Write a command to display line, which start with the. 10. Write a command to display line, which ends with India. 11. Write a command to print first six line of file. Prepared By: Ms. Nidhi Solanki (Assist. Prof.) Page 6

TOPIC 9.7 : 2013 march/april 1. Display lines 10 to 15 from file x1. 2. Display last word of each line from a file x1. 3. To count number of characters in last line of file x1. 4. To count number of words in line 40 through 60 of file f1.txt. 5. To delete all special characters from file x1. 6. Display all line that start with let, from a file x1. TOPIC 9.8 : 2013 oct/nov 1. To remove duplicate line from a file 2. To count number of characters in last line of file X1. 3. Display the processes of user bca0 I 4. List the user from /etc/passwd in the alphabetically sorted order 5. Count the frequency of users who are logged in from more than one terminal 6. Display string in upper case of the file f1.txt. TOPIC 9.9 : 2012 oct/nov(1 mark each) 1. Count number of characters in first five lines of file X1. 2. To replace the word computer with computing of file x1. 3. Display lines whose last word is Unix of file x1 4. Display lines starting from 10 th line to the end of file X1 5. To delete all special characters from the file X1. 6. To display lines beginning with alphabets of a file X1. 7. To remove a file name as X1?(X1 followed by? character) 8. To run script X1 in background so that its execution continues even user logout from the system. 9. To display last line of a file X1. 10. To deny execute permission to a group of a file X1. 11. To create link between file X1 and X1.link Prepared By: Ms. Nidhi Solanki (Assist. Prof.) Page 7

TOPIC 9.10 : 2012 mar/apr(1 mark each) 1. To print first three lines of file tybca. 2. To sort file by last access time 3. To print field 1 and 6 from file tybca 4. To print unique line of file tybca 5. To print frequency of each line from file tybca 6. To find file having size greater than five 7. To find a file having.c extension 1. Write a command to print line which contain tybca on file dept.lst 2. Write a command to print lines which not contain tybca 3. To print line 6 to 12 4. To replace first occurrence of surat with vyara in each line 5. To print content of file after deleting every ; 6. To sort on 3 column to 5 column 7. To convert small alphabets to capital 8. To print lines with line number which contain Marketing TOPIC 9.11 : 2011 oct/nov 1. Forcefully delete each file from directory tybca/my work 2. Show all hidden files from mydir/tybca 3. Sort filename by last access time from directory tybca/mywork 4. Rename file chap 1 to unit 1 5. Find out number of lines of file chap01 6. Find out inode number of file chap01 1. write a command to sort a line of file and also remove repeated line 2. Command to locate the tybca ignoring case 3. Command to display occurrence of string Sale 4. Command to display line which start with the 5. Command to display line which end with ia 6. Command to print first three lines of file 7. Command to substitute doshi with desai Prepared By: Ms. Nidhi Solanki (Assist. Prof.) Page 8

TOPIC 9.12 : 2011 mar/apr 1. Write a command to display all words in file 1 that begin with digit 2. To display total number of words and lines of files for which file name start with m 3. To remove all leading space from a file f1 4. To display line number before each line 5. To display line 10 to 20 from file f1 6. To remove3 dir. Tree dir1/dir2/dir3 using single command 7. To move all files begin with digit from the parent dir to current dir 8. To convert decimal number 192 to hexadecimal 9. To give read and write permission to file f1 10. To change modification time of a file f1 to dec 01 10:30 am 11. To display all unique words of file f1 TOPIC 10 : AWK UTILITY THEORY: MARKS YEAR 1. Using AWK utility explain system variables. (significance) 6/3 2014,2012 2. Using AWK utility explain system variables 6/3 2014/2012 3. Using AWK utility explain Hash Arrays 6 2014 4. Using AWK utility explain any four built in functions 6 2014 5. Explain concept of array in awk utility 3 2012,2012 march,201 1,2011 mar,2010, 2010oct 6. Write note on pattern matching feature of awk utility giving example 4 2013 7. Write an awk script to display file contents in reverse.(i.e last line should be displayed first,..,first line should be 3 2012 displayed last.) 8. Write operators of awk 2 2011 9. Write a script using awk utility to create two 3*3 matrix and multiply it 6 2011 10. Explain matching operators of awk utility with example 6 2011/2010 11. Differentiate between system variables of awk utility FNR 2010/2010 2 and NR _oct 12. Explain with example the purpose of BEGIN and END block of awk utility. 2 2010 Prepared By: Ms. Nidhi Solanki (Assist. Prof.) Page 9

TOPIC 11 : WRITE COMMANDS (1 mark each) TOPIC 11.1 : 2014 nov./dec. USING awk UTILITY 1. print odd numbers of words in each line 2. Print lines no 18 to 30 from file f1.txt. 3. Count the total no. of lines in a file. 4. Count occurrence of pattern Unix in file f1. 5. Print lines, which end with 5, 6, and 7 from, file f1. 6. Write a script to print 1 to 10 nos. 7. Write a command to print those lines where field2 is computer field 3> 15000 from sales file. 8. Display those words whose length is greater than 8 characters and consist of alphabet only. TOPIC 11.2 : 2014 march/april (2 mark each) 1. Print even numbers of words in each line. 2. Count occurrence of pattern operating system in file f1. 3. Display those words whose length greater than 10 characters and consist of alphabet only. TOPIC 11.3 : 2014 nov./dec. 1) Write awk script to display the user login ids, their home directories and login shells from the /etc/passwd file. 2) Switch the first two fields in each line of a text and put the result in a new file 3) To only print lines wherein the first field had a numeric value of less than 20 4) Write script using awk utility to display files contents in toggle case. Assume that file should be passed from command line.(8)(2010) Prepared By: Ms. Nidhi Solanki (Assist. Prof.) Page 10

TOPIC 11.4 : 2014 march/april 1. To count number of occurrence of pattern bca in file f1 2. To print words whose length is greater than 4 characters and consist digits only 3. To print even number of words in each line TOPIC 11.5 : 2010 march/april 1. Write script using awk utility to display files contents in toggle case. Assume that file should be passed from command line.(5) 2. Write a script that removes all empty files in current working directory. Appropriate data validation is expected.(3) TOPIC 12 : SHELL SCRIPTS: MARKS YEAR 1. What is the use of test statement 2 2012 2. Write a shell script to reverse a number. 5 2014 3. Write a shell script to perform mathematical operations using 2013/2 5 menu. (+_*/) 010 4. Write a shell script to test the file is a executable file or not. 5 2014 5. Write a shell script to check whether the given file is empty or not 5 2013 6. Write a shell script to find smallest of three numbers that are read from keyboard 5 2014 7. Write a shell script to validate the name of a person accepted through the keyboard so that it does not exceed 10 chars of length 5 2014 8. Write a shell script to display list of all files in the current directory to which you have read write and execute permissions. 9. Write a shell script to check the entered no is palindrome or not 4/5/5 10. 11. Write a shell script to accept two decimal numbers from keyboard and display their sum in hexadecimal form. Make proper validation. Write a shell script to remove only empty files from current directory 5 2012 Prepared By: Ms. Nidhi Solanki (Assist. Prof.) Page 11 2011/2 012/20 13 5 2013 5 2012

12. Check whether the number is Armstrong or not 4 2011 13. Write a shell script to enter two strings, check they are equal or 2011/2 4 not, also check the length of both strings should greater than 0 010 14. An integer or a floating point number should be accepted from user. Write a menu driven script for the following options: 1) convert decimal to binary number 2) convert decimal to octal number 3) convert decimal to hexadecimal number 8 2010 15. 16. 17. do proper validations Write a script that removes all empty files in current working directory. Appropriate data validation is needed. Write script to enter 5 subjects marks from command line and display % and appropriate class Write script to check entered character is uppercase lowercase numeric digit or special character 5 2010 4 2010 4 2010 TOPIC 13 : COMMANDS MARKS YEAR 1. Note on ls command with options and example(detail note) 3/7 2013,20 12 2. Umask 4 2014 3. Bc 4 2011/20 13/2014 4. Ln 2 2013 5. Explain u,-n,-r options of sort. 2 2013 6. Tee 2/3 2014/20 13/2011/ 2011 mar/201 0/2010 oct 7. Mv 2 2014 8. Shift 2 2011 9. explain expr command giving example for string manipulation 5 2014 10. list default file as well as directory permission when making has been set by the command as umask 333 2 2013 11. What chmod 615 employee command does? 2 2013 12. nice 2 2013,20 12,2011, 2011 mar Prepared By: Ms. Nidhi Solanki (Assist. Prof.) Page 12

13. find command 3 2014 14. what do you mean by Unix internal external command 2 2011 15. uniq filter 2 2013,20 12,2011 16. Wall 2 2013 17. What happened when cd command is run without arguments? 2 2014 18. Explain any two communication command 4 2013 19. -a command 2 2012 20. Why r option of rm is dangerous 2 2012 21. Tr 2 2012/20 11 22. Kill 2 2012 23. More 2 2012 24. Touch 2/2/4/4 2012oct, 2012mar ch,2010/ 2014 25. Explain -u,-n,-r option of sort 2 2012 26. detail note on diff and comm. 4 2012 27. sort command with options(any 3 option for 4 marks) 5/7/4 2012,20 11/2011 mar,201 0 28. chown and chgrp 4 2012 29. Ps 2 2012,20 10 30. pr and tr filters 4 2012 31. diff?example 2 Prepared By: Ms. Nidhi Solanki (Assist. Prof.) Page 13 2011,20 10,2010 oct 32. what is use 0f v and n option with cat 2 2011 33. Significance if cp R option 2 2011 34. Head and tail filters 4 2011 35. cmp and comm. 5 2011,20 10 36. wc and cal 2 2011 37. Explain head filter 2 2012 38. difference between diff and cmp command 2 2011 39. Difference between cat and more command 2 2011 40. What will $echo* command do 2 2011 41. Purpose of n option with sed 2 2011 42. Difference between grep and fgrep command 2 2011 43. Difference between cat test and cat>test 2 2011 44. What is purpose of. and.. 2 2011 45. Chmod 2 2011

46. How you use egrep and grep to take pattern from a file? give example 5 2011 47. Mail command 4 2011 48. Significance of sleep and wait command. 2 2011/20 10 49. Cut and paste command 2 2011 50. Why file command is used 2 2011/20 10 51. Why test command is used 2 2011 52. Output of tail 20 file 1 2 2011 53. Write and eval 2 2010,20 10oct 54. Use of test statement 2 2010 55. Explain online communication commands 4/4 2010,20 10oct 56. batch command 2/3/3/3 2010/20 14/2013/ 2011 57. Explain command mv*../bin 1 2010 58. Explain cp[!a-za-z]* progs. 1 2010 59. Explain significance of expr and echo 1 2010 60. Explain significance of tty 1 2010 61. What is output of head n 5 f1 and tail +5 f1 command 1 2010 62. at command 1/3/3/3/3 2010/20 14/2013/ 2011/20 10 63. Why -r option of rm command is dangerous 2 2010 64. grep command use 2 2010 TOPIC 14 : SOME MORE IMPORTANT SHORT S MARKS YEAR 1. Explain here document 2 2012 2. What is major and minor number? 2 2014 3. What do you mean by command substitution? 2 2013 4. Devise a pipeline sequence which lists five largest files in the current working directory? 2 2013 5. What is the purpose of ^ in regular expression 2 2013 6. When do wild card characters lose their meaning? 2 2013 7. Define redirection. List out the symbols used for redirection. 2 2013 8. Differentiate between $@ and $*(2) 2 2013/2 013oct/ Prepared By: Ms. Nidhi Solanki (Assist. Prof.) Page 14

2010/2 010 oct 9. What information contained by $? And $# variable? 2 2014 10. What will be the output of following code:a= expr 5%2 echo $A 2 2011 11. What is exit status of a command? What is its normal value, and where is the value store? 2 2014 12. Explain conditional parameter substitution giving example 5 2012 13. What do you mean by pipe give example 2 2012/2 010 14. Remembered pattern and repeated pattern 5 2012,2 010 15. Explain pipe 1 2011 16. What is regular expression? Explain any one utility which use regular expression, with proper example 5 2011 17. 18. How command substitution differs from piping mechanism? Explain with example 2 2010 19. Explain booting sequence of Unix OS. 4 2010 20. What is difference between screen and line editor? List any two names of line and screen editor 1 2010 21. What is regular expression? Write a regular expression that matches comment line of c program 2 2010 22. Explain different role of ^ in regular expression. 2 2010 23. Explain features of Unix OS. 6 2010 24. Explain remembered pattern and repeated pattern giving suitable example. 6 2011 25. Give significance of following system variable HOME,PSI 2 2010 26. Explain find operator in detail 5 2011 27. Features of OS 5 2011 28. Which attribute change, when* you copy a file from another user account 1 2011 29. Significance of FSCK utility 1 2011 30. Detail note on FSCK utility of Unix 6 2011 31. Purpose of sticky bit 2 2011/2 010 32. Differentiate > and >> 2 2011 Prepared By: Ms. Nidhi Solanki (Assist. Prof.) Page 15