Please enable JavaScript.
Coggle requires JavaScript to display documents.
JNTUK - Unix & Shell Programming - Previous Question Papers (Unit-1…
JNTUK - Unix & Shell Programming - Previous Question Papers
Unit-1
short answer questions
List and explain the commands that do not accept any arguments.
What is the output of the following command
‘$who | sort –logfile > newfile’? Explain.
long answer questions
Explain about the UNIX architecture.
Describe the following commands: (i) script (ii) more (iii) tar (iv) mount.
With a neat sketch, explain the architecture of UNIX operating system.
Explain the following UNIX commands
i) cp ii) tar iii) more iv) mkdir
Unit-2
short answer questions
Explain about nl command.
Enumerate some of the commonly used network commands in Unix
long answer questions
What are process utilities? Explain in detail.
Explain about unlink, unmask and rlogin with examples.
Explain the two basic modes of the vi editor. Also explain various commands of the vi editor.
What are the three levels of security in UNIX? Explain each in detail.
Unit-3
short answer questions
Define file system.
Write a shell script to get current date, time, user name and current working directory.
long answer questions
Discuss about directory API.
What is redirection? Explain three redirection operator with an example shell script.
What is Redirection? Explain the various commands used for redirection
Explain the following system calls
i)open ii)lseek iii)write iv)symlink
Unit-4
short answer questions
Write applications of awk.
Write the ‘sed’ command to replace the pattern “UNIX” from the 5th occurrence to the end of file.
long answer questions
Discuss about string functions and mathematical functions.
Explain in detail about grep family.
What is an awk utility? Explain the two formats of the awk command. Can the awk command accept a regular expression?
Explain the differences between grep and sed with a suitable example.
Unit-5
short answer questions
Why shell scripting?
List and explain about various environment variables in Korn shell
long answer questions
Describe environmental variables in Korn shell.
Explain about expressions in Korn shell.
Explain the two special files in UNIX used by any Korn shell.
What are positional parameters? How to validate input parameters? Explain with an example.
Unit-6
short answer questions
Explain about C shell.
What are positional parameters in C shell scripting? Explain the meaning of the $0, $2, ${9}, $*
long answer questions
Discuss about environmental and on-off variables in C shell.
Describe decisions in C shell.
How we know the exit status of a command in C shell? Explain.
What is an On-Off variable in C Shell? List some of these variables and their use.
Prepared by: Srinivas Adapa, Associate Professor, CSE Department, CITM