현재 사용하고 있는 shell 확인 방법과 사용하는 shell을 변경하는 방법
페이지 정보
작성자 dwkim 작성일 21-10-08 15:16 조회 5,007 댓글 1본문
현재 사용하고 있는 shell 확인 방법과 사용하는 shell을 변경하는 방법에 대해서 알려주세요!
회사명 : (주)리눅스데이타시스템 / 대표 : 정정모
서울본사 : 서울특별시 강남구 봉은사로 114길 40 홍선빌딩 2층 / tel : 02-6207-1160
대전지사 : 대전광역시 유성구 노은로174 도원프라자 5층 / tel : 042-331-1161
jekim1님의 댓글
jekim1 작성일◇ 현재 사용하고 있는 shell 확인 방법
[root@localhost ~]# echo $SHELL
/bin/bash
◇ 현재 설치되어 있는 쉘 확인하기 (=사용 가능한 쉘 리스트 알아보기)
[root@localhost ~]# cat /etc/shells
/bin/sh
/bin/bash
/usr/bin/sh
/usr/bin/bash
/bin/tcsh
/bin/csh
◇ shell을 변경하는 방법
[root@localhost ~]# chsh -s /bin/csh root
Changing shell for root.
Shell changed.
[root@localhost ~]# grep root /etc/passwd
root:x:0:0:root:/root:/bin/csh
바뀐 쉘은 다시 로그인 해야 적용됩니다.