UNIX AND SHELL PROGRAMMING
UNIX AND SHELL PROGRAMMING
[As per Choice Based Credit System (CBCS) scheme]
(Effective from the academic year 2017 -2018)
SEMESTER – III
Number of Lecture Hours/Week
Total Number of Lecture Hours
CREDITS – 03
Introduction, Brief history. Unix Components/Architecture. Features of Unix. The UNIX Environment
and UNIX Structure, Posix and Single Unix specification. The login prompt. General features of Unix
commands/ command structure. Command arguments and options. Understanding of some basic
commands such as echo, printf, ls, who, date, passwd, cal, Combining commands. Meaning of
Internal and external commands. The type command: knowing the type of a command and locating
it. The man command knowing more about Unix commands and using Unix online manual pages. The
man with keyword option and whatis. The more command and using it with other commands.
Knowing the user terminal, displaying its characteristics and setting characteristics. Managing the
non-uniform behaviour of terminals and keyboards. The root login. Becoming the super user: su
command. The /etc/passwd and /etc/shadow files. Commands to add, modify and delete users.
Topics from chapter 2 , 3 and 15 of text book 1,chapter 1 from text book 2
Unix files. Naming files. Basic file types/categories. Organization of files. Hidden files. Standard
directories. Parent child relationship. The home directory and the HOME variable. Reaching required
files- the PATH variable, manipulating the PATH, Relative and absolute pathnames. Directory
commands – pwd, cd, mkdir, rmdir commands. The dot (.) and double dots (..) notations to
represent present and parent directories and their usage in relative path names. File related
commands – cat, mv, rm, cp, wc and od commands. File attributes and permissions and knowing
them. The ls command with options. Changing file permissions: the relative and absolute
permissions changing methods. Recursively changing file permissions. Directory permissions.
Topics from chapters 4, 5 and 6 of text book 1
Module – 3
The vi editor. Basics. The .exrc file. Different ways of invoking and quitting vi. Different modes of
vi. Input mode commands. Command mode commands. The ex mode commands. Illustrative
examples Navigation commands. Repeat command. Pattern searching. The search and replace
command. The set, map and abbr commands. Simple examples using these commands.
The shells interpretive cycle. Wild cards and file name generation. Removing the special meanings of
wild cards. Three standard files and redirection. Connecting commands: Pipe. Splitting the output:
tee. Command substitution. Basic and Extended regular expressions. The grep, egrep. Typical
examples involving different regular expressions.
Topics from chapters 7, 8 and 13 of text book 1. Topics from chapter 2 and 9 ,10 of text book 2