GUI 환경의 리눅스를 설치하면 데스크탑의 폴더명이 "다운로드"나 "바탕화면", "문서" 처럼 한글로 만들어져 있습니다.


locale 이 한글이기 때문인데 한글 폴더명은 console 등에서 입력하기 불편해서 다음과 같은 방법으로 영어 이름으로 변경해서 사용합니다.

xdhg 사용

 XDG 사용자 디렉터리를 설정하는 명령어인 xdg-user-dirs-update 명령을 C locale 로 설정해서 실행하면 됩니다.

$ LANG=C xdg-user-dirs-update --force


Moving DESKTOP directory from 바탕화면 to Desktop
Moving DOWNLOAD directory from 다운로드 to Downloads
Moving TEMPLATES directory from 서식 to Templates
Moving PUBLICSHARE directory from 공개 to Public
Moving DOCUMENTS directory from 문서 to Documents
Moving MUSIC directory from 음악 to Music
Moving PICTURES directory from 사진 to Pictures
Moving VIDEOS directory from 비디오 to Videos
BASH

그리고 logout 후에 다시 login 을 하면 데스크탑 폴더가 영어로 바뀌어 있습니다.



xdg-user-dirs-update 명령은 ${HOME}/.config/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"

CODE




Ref