[bash&zsh 환경] su 명령어 사용시 hypen 옵션 사용 유무의 차이
su 명령어 (change user ID or become super user) 사용시 '-' (hypen) 을 사용하는 경우와 그렇지 않은 경우가 항상 헷갈렸었는데 이 내용을 정리하고자 한다. 아래 스택오버플로우 페이지에 상세하게 설명되어 있다. https://superuser.com/questions/453988/whats-the-difference-between-su-with-and-without-hyphen hypen 을 사용하게 되면 아래와 같이 2가지 차이점이 있다. The hyphen has two effects:1) switches from the current directory to the home directory of the new user (e.g., to /root in the c..
리눅스/리눅스 명령어 및 기타
2018. 3. 13. 00:22