JAVA SCRIPT

RH033. 10.CONFIGURING BASH SHELL



             CONFIGURING BASH SHELL


     a=3233     //local variable only for current shell
     export a  //Makes variable a globally available  for subsequent shells


     Inbuilt variables are defined in set|less and env|less


     Login scripts -->scripts tht executes when person logs in

     1./etc/profile
     2./etc/profile.d/lang.sh
     3./root/.bashrc
     4./root/.bash_profile
     5./etc/bashrc


     NON-Login scripts -->scripts tht executes when you do su or normaluser

     1./etc/profile
     2./etc/profile.d/lang.sh
     5./etc/bashrc


     #   su  - <user1>  //Root switching as user1 --no authentication needed
     $   su  - root    //Normal user switching as root -- authentication needed


If you found this post useful, I would really love it, if you can Like the Page, or share it with your Facebook/Google+/Twitter Friends... It will keep me motivated. Thank you!

No comments:

Post a Comment