Ubuntu command-line display and directory to English

When installing ubuntu ubuntu instead of originally thought that the Chinese better understand some, and eventually found an error in the command line while Chinese side of the English really uncomfortable, not suitable for learning, so the command line and want to display the directory are changed to English, I was so put the English command line in the directory display to English, but I do not know that there is no easy way, yes you can tell what small series

A command line to English:

  In the directory / etc / default / locale file is the following configuration code locale:

  LANG = "en_US.UTF-8"

  LANGUAGE = "en_US: a '
  Run at the terminal:
    Jan -en_US locale: in
Second, ubuntu will display the directory into English:
  There are two ways:
    the first method:  

    Open the terminal, enter the command in the terminal:  

            export LANG = en_US

            xdg-user-dirs-gtk-update

    Out of the dialog box asking whether the directory path into English, and agreed to shut down.
    Enter a command in Terminal:

            export LANG = zh_CN

    Close the terminal, and restart the next time into the system, the system will prompt whether to convert good directory back to Chinese. Further prompting, modify and cancel the main directory of Chinese to English is done ~

    The second method:       

  Edit the configuration file:

      ~/.config/user-dirs.dirs,用vim 或者mano等都可以的
  把文件夹指向改掉:
            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"

 

 

Guess you like

Origin www.cnblogs.com/white-the-Alan/p/10931522.html