中文版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 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/视频"
修改为
# 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"
二、修改目录名
将家目录下各个目录的中文名称修改成配置文件里对应的英文名称
三、重启系统即可