zoukankan      html  css  js  c++  java
  • Kali 中文家目录改英文目录

    中文版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"

    二、修改目录名

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

    三、重启系统即可

  • 相关阅读:
    程序员这生必须掌握的两种图形
    用一张组织架构图说清楚类和对象
    简单工厂、工厂方法、抽象工厂的比较与分析
    rabbitmq系列(一)初识rabbitmq
    【最新】经典面试100问,附答案
    使用wordPress搭建个人博客
    调试接口你还在用postman吗
    Token ,Cookie、Session傻傻分不清楚?
    你不可不知的自定义注解
    使用aop加解密http接口
  • 原文地址:https://www.cnblogs.com/captainRoB/p/7260264.html
Copyright © 2011-2022 走看看