码迷,mamicode.com
首页 > 其他好文 > 详细

Kali之中文系统目录改为英文目录的方法

时间:2017-07-30 20:29:49      阅读:1860      评论:0      收藏:0      [点我收藏+]

标签:mat   pre   roo   操作   中文显示   nload   change   文档   rect   

 

中文版Kali装好之后,家目录会中文显示,不便操作

root@kali:~# ls -l
drwxr-xr-x 2 root root 4.0K 7月   8 10:53 公共
drwxr-xr-x 2 root root 4.0K 7月   8 10:53 模板
drwxr-xr-x 2 root root 4.0K 7月   8 10:53 视频
drwxr-xr-x 2 root root 4.0K 7月   8 10:53 图片
drwxr-xr-x 2 root root 4.0K 7月   8 10:53 文档
drwxr-xr-x 2 root root 4.0K 7月   8 10:53 下载
drwxr-xr-x 2 root root 4.0K 7月   8 10:53 音乐
drwxr-xr-x 2 root root 4.0K 7月   2 17:13 桌面

 

修改方法

 

一、修改配置文件 ~/.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 youre
# 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/视频"

修改为

# This file is written by xdg-user-dirs-update
# If you want to change or add directories, just edit the line youre
# 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"

 

二、修改目录名

将家目录下各个目录的中文名称修改成配置文件里对应的英文名称

 

三、重启系统即可

 

Kali之中文系统目录改为英文目录的方法

标签:mat   pre   roo   操作   中文显示   nload   change   文档   rect   

原文地址:http://www.cnblogs.com/captainRoB/p/7260264.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!