Professional Documents
Culture Documents
&TCLBasics
Instructions: Please type the answer in the column on the right , next to the question
Afterfinishingthetest,pleasesendyouranswersheetsfromyour
TechMmailID. Name the file name: YourName_BatchCode_UnixTestAnswers.docx
We want base data first. First version should be answered without Web Search.
.
1
a) Explain the terms Kernel Kernel
and Shell in Unix(1) It basically acts as an interface
between user applications and
hardware.
The major aim of kernel is to
manage communication between
software i.e. user-level
applications and hardware i.e.,
CPU and disk memory.
Shell
Shell is a powerful user interface,
so the user interacts with the
shell by typing in the commands.
• The shell interprets the
commands, that may produce
some results,they go back to the
user and the control is given back
to the user when a command
completes (in general).
• In the case of external commands,
shell executes actual programs
that may call functions of the OS
kernel.
• These system commands are
often wrapped around a so-called
system calls, to ask the kernel
b) Explain the term By using % sign, it means prompt
Prompt(1) here and hereafter.
It gives useful information to the
user.
The command to display prompt:
% less –p”Press ‘q’ to quit”
filename
The sigh –i is to prevent
overwriting existing files and
prompt the user to confirm.
To set :
$ <var-name>=string/value
$ echo $<var-name>
To modify:
$ vi .bashrc
export <var-name>=string/value
To unset:
$ unset <var-name>
b) What is the command to printenv
list the environment
variables and their
values?(1)
c) What is the command to printenv <variable-name>
display the value of a
specific environment
variable?(1)
d) What is the special PATH: env variable which is a list
meaning of environment of directories separated by : .
variables PATH, When a command is entered in
DISPLAY and the prompt, the shell searches
LD_LIBRARY_PATH?(1) these paths in sequence to find
the executable file matching the
name with entered command
DISPLAY: environment
variable is used by all clients to
determine what server to display
on.