Unit - III: Using The Unix
Unit - III: Using The Unix
– The first step was to create a ordinary fie that contains ‘ who |wc –l’
i.e.
– Run the shell with its input coming from the file nu instead of the
terminal
i.e
– Make nu executable
– And thereafter you can invoke with
• To make nu part of repertoire, move it to private
bin directory and add /usr/you/bin to search path
• A shell fiile cannot change the value of a variable.,because the shell file is
run by sub-shell.
• There are times when using a shell file to
change shell variables is useful
– To add a new directory to your PATH
• The shell therefore provides a command
‘.’(dot) that executes the command in a file in
the current shell rather than in a sub-shell.
• The other way to set the value of a variable in a sub-shell is to assign
to it explicitly on the command line before the command itself.
is inferior to