Adobe Scan 07 Nov 2024
Adobe Scan 07 Nov 2024
Adobe Scan 07 Nov 2024
1. Define Computer.
3. The computer language that most closcly resembles machine language is ......
4. List out the differences between RAM and ROM.
letter to 5 users?
15. What is the command to mail a
8
with examples?
6) Explain the importance of mount, umount
commands with examples?
7. Explain comm, diff, cmp
8 Explain tr command with examples?
examlpes :
9 Discuss working of following commands with suitable
a) cal b)_date efuname Dprintf
2
1.
Define the sort command.
redirected invarious ways?
general
ENGI
Short Answer Questions
3
commands.
4 Compare cmp and diff
smallest of 10 integers.
Write a function to find
5 input lines.
print total number of process also?
6 Write a function to command to list the PID of the parent
used with ps
7 Which option can be command?
significance of-c option in grep txt.
What is the [a -z<. *!S)'I inputfile.
output of-egrep (0 [A-Z].* IS) |(0
9. Write following
down the expected output of the
10. Write NR ==4 (print S 0}*
commandawk NR = =1,
input file txt
command for
11. Write grep
or
following. To add delete
change a line. unix".
UNIX" and end with
that starts with
Selects lines fromn file
commands
13. Define the following
a. uniq
b. tr
C. cut
paste
ENGINEERING
CaCopyright O CVR COLLEGE OF
14. prove that the
following
sort it in
utility isa filter by using
-n+2-3
commandsort -n +0-1 filel|: sort-n +| -2|:sort
UNIT - III
Short Answer Questions
1 Is there any difference
between login shell and current shell. Justify vour an
2. Is Command Substitution is supported by the Korn
Shell by command. If
3. Which command creates a korn Shell child2 yes give
EXCELLENGe
A Write basic input and output commands for Kom Shell.
example.
5. Write a file closing statement
sta in korn shellST OF
thetwo operators that make the
6. What are of exccution commands
7. List two special
files used by UNIX shell.
used to view the exit status of
conditional?
8. What is command the last
example. executed command?
redirection standard files with
Explaíndefault
9. Swho:>
thefunctionalityof
is ldev/tty?
10. What outputofthe command wc -1 fact.c?
isthe
11. What env command output?
outputdoes3
12. What Copyright OCVR COLLEGE
OF
ENGINEERING
13. What is the functionality of the command $alias ll=ls -1 refers to?
14. Device a pipeline command which gives largest files in the current directory.
15. How do you display listing ofalldirectories in the PATH list?
16. How do you convert the contents of the file emp.Ist to uppercase?
17. Where does un-redirected standard output normally go?
NG
20. What the output of the Command Sunig -c filel23
RING
3. What is an option? List some options and their uses?
4. Discuss various forms ofExpressions along with the operators.
shell.
5. Explain how decisions are made in a Korn
special parameters and variables in Korn Shell? What are startup scripts in Kornshell?
6. What are
where is it stored?
What is the exit status ofa command
in Korn shell?
7. Explain the various loop structures used
Korm shell
8. Write cach of the following file expressions on
R.B. LENCEY
filel is empty
file2 is not readable
GALPALL
9. what would be printed from the following script segment? Explain why?
X-0 UN IN PURSUIT OF
for I in $(who)
do
(x=x+1))
Print done