• 흐림동두천 1.0℃
  • 흐림강릉 1.3℃
  • 서울 3.2℃
  • 대전 3.3℃
  • 대구 6.8℃
  • 울산 6.6℃
  • 광주 8.3℃
  • 부산 7.7℃
  • 흐림고창 6.7℃
  • 흐림제주 10.7℃
  • 흐림강화 2.2℃
  • 흐림보은 3.2℃
  • 흐림금산 4.4℃
  • 흐림강진군 8.7℃
  • 흐림경주시 6.7℃
  • 흐림거제 8.0℃
기상청 제공

/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