• 흐림동두천 0.2℃
  • 흐림강릉 12.5℃
  • 서울 1.1℃
  • 대전 2.5℃
  • 대구 12.9℃
  • 울산 12.8℃
  • 흐림광주 3.8℃
  • 부산 13.3℃
  • 흐림고창 2.2℃
  • 구름많음제주 8.6℃
  • 흐림강화 0.6℃
  • 흐림보은 1.6℃
  • 흐림금산 2.4℃
  • 흐림강진군 5.5℃
  • 흐림경주시 13.3℃
  • 흐림거제 14.1℃
기상청 제공

/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