The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 06-26-2009
scottn scottn is online now Forum Advisor  
VIP Member
  
 

Join Date: Jun 2009
Location: Zürich, CH
Posts: 1,100
su - creates a login shell - it's more like logging in that with just su.

See the difference:


Code:
/root # su oracle
/root # echo $0
ksh
^d
/root # 
/root # su - oracle
/home/oracle > echo $0
-ksh
/home/oracle >