Implementation of shell terminal in unix