• 구름많음동두천 29.3℃
  • 맑음강릉 33.1℃
  • 구름많음서울 29.7℃
  • 구름조금대전 30.6℃
  • 구름조금대구 30.8℃
  • 맑음울산 31.3℃
  • 구름조금광주 30.5℃
  • 맑음부산 31.2℃
  • 맑음고창 31.0℃
  • 맑음제주 31.5℃
  • 구름많음강화 28.8℃
  • 구름조금보은 27.9℃
  • 맑음금산 29.4℃
  • 구름조금강진군 30.8℃
  • 맑음경주시 31.7℃
  • 구름조금거제 30.6℃
기상청 제공

/etc/skel

/etc/skel 디렉토리는 사용자 계정 생성(useradd)시에 환경 설정 파일들이 저장되어 있는 디렉토리다.
이 파일들은 useradd 명령어로 계정 생성시에  /etc/skel 이라는 디렉토리에 존재하는 파일들을 그대로 복사해온다.
새로생성되는 사용자의 홈디렉토리로 복사 되어진다.

root@web:/etc# ll skel
total 20
drwxr-xr-x.  2 root root 4096 Dec 25 07:51 .
drwxr-xr-x. 82 root root 4096 Jan  2 03:24 ..
-rw-r--r--.  1 root root   18 May 11  2012 .bash_logout
-rw-r--r--.  1 root root  176 May 11  2012 .bash_profile
-rw-r--r--.  1 root root  124 May 11  2012 .bashrc
roroot@web:/# useradd KY
root@web:/# passwd hky
Changing password for user hky.
New password:
passwd: all authentication tokens updated successfully.ot@web:/# ll /home/KY
total 20
drwx------  2 KY   KY   4096 Jan  3 10:45 .
drwxr-xr-x. 5 root root 4096 Jan  3 10:45 ..
-rw-r--r--  1 KY   KY     18 May 11  2012 .bash_logout
-rw-r--r--  1 KY   KY    176 May 11  2012 .bash_profile
-rw-r--r--  1 KY   KY    124 May 11  2012 .bashrc