'홈디렉토리'에 해당되는 글 1건

  1. 2011.11.01 CentOS 한글 홈디렉토리명 영문으로 변경 방법
OS/Linux2011. 11. 1. 10:15

Date :

2011.11.1


Category :
OS - Linux - Tip

Note :
CentOS 설치시 지역설정 및 언어설정을 "한국, 한글" 로 하게 되면 유저의 홈디렉토리명이 한글로 자동 생성 됩니다.
시스템 관리자 입장에선 디렉토리 이동간에 "한글"로된 파일, 디렉토리명은 여간 번거로운게 아니기에
아래와 같은 방법으로 수정 할 수 있습니다.




Document :
#1

[ggomsu@localhost ~]$
[ggomsu@localhost ~]$ id
uid=501(ggomsu) gid=501(ggomsu) groups=501(ggomsu) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
[ggomsu@localhost ~]$ pwd
/home/ggomsu
[ggomsu@localhost ~]$ ls
공개  다운로드  문서  바탕화면  비디오  사진  음악  템플릿


[ggomsu@localhost ~]$ ls -a
.              .bash_logout   .config    .gconfd  .gstreamer-0.10  .local     .pulse-cookie     공개      비디오
..             .bash_profile  .dbus      .gnome2  .gtk-bookmarks   .mozilla   .ssh              다운로드  사진
.ICEauthority  .bashrc        .esd_auth  .gnote   .gvfs            .nautilus  .viminfo          문서      음악
.bash_history  .cache         .gconf     .gnupg   .imsettings.log  .pulse     .xsession-errors  바탕화면  템플릿


[ggomsu@localhost ~]$ cd .config/
[ggomsu@localhost .config]$ ls
gnome-disk-utility  gnome-session  ibus  user-dirs.dirs  user-dirs.locale


[ggomsu@localhost .config]$ cat user-dirs.dirs
# This file is written by xdg-user-dirs-update
# If you want to change or add directories, just edit the line you're
# interested in. All local changes will be retained on the next run
# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped
# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
# absolute path. No other format is supported.

XDG_DESKTOP_DIR="$HOME/바탕화면"
XDG_DOWNLOAD_DIR="$HOME/다운로드"
XDG_TEMPLATES_DIR="$HOME/템플릿"
XDG_PUBLICSHARE_DIR="$HOME/공개"
XDG_DOCUMENTS_DIR="$HOME/문서"
XDG_MUSIC_DIR="$HOME/음악"
XDG_PICTURES_DIR="$HOME/사진"
XDG_VIDEOS_DIR="$HOME/비디오"


[ggomsu@localhost .config]$ vi user-dirs.dirs
# This file is written by xdg-user-dirs-update
# If you want to change or add directories, just edit the line you're
# interested in. All local changes will be retained on the next run
# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped
# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
# absolute path. No other format is supported.
#
XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DOWNLOAD_DIR="$HOME/Downloads"
XDG_TEMPLATES_DIR="$HOME/Templates"
XDG_PUBLICSHARE_DIR="$HOME/Public"
XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_MUSIC_DIR="$HOME/Music"
XDG_PICTURES_DIR="$HOME/Pictures"
XDG_VIDEOS_DIR="$HOME/Videos"


[ggomsu@localhost ~]$ pwd
/home/ggomsu
[ggomsu@localhost ~]$ ls
공개  다운로드  문서  바탕화면  비디오  사진  음악  템플릿


[ggomsu@localhost ~]$ mv 공개 Public
[ggomsu@localhost ~]$ mv 다운로드 Downloads
[ggomsu@localhost ~]$ mv 문서 Documents
[ggomsu@localhost ~]$ mv 바탕화면 Desktop
[ggomsu@localhost ~]$ mv 비디오 Videos
[ggomsu@localhost ~]$ mv 사진 Pictures
[ggomsu@localhost ~]$ mv 음악 Music
[ggomsu@localhost ~]$ mv 템플릿 Templates
[ggomsu@localhost ~]$ ls
Desktop  Documents  Downloads  Music  Pictures  Public  Templates  Videos


Posted by JINSAN CHOI