One need a proper environment to do a job. When a user logs into the Linux system, the shell set a suitable environment for that user to work on the system. The environment set by one shell may vary from the other. One can see the currently set environment
using ‘set’ or ‘env’ commands.
•LOGNAME=root
•MAIL=/var/spool/mail/root
•TERM=vt100
•PATH=/sbin:/bin:/usr/sbin:/usr/bin:
•HOME=/root
•PS1
•PS2
using ‘set’ or ‘env’ commands.
•LOGNAME=root
•MAIL=/var/spool/mail/root
•TERM=vt100
•PATH=/sbin:/bin:/usr/sbin:/usr/bin:
•HOME=/root
•PS1
•PS2