If Ubuntu is installed in Russian, the folders in the home directory will look like this:

Image description

When folders are not named in the Latin alphabet, it becomes inconvenient to work with the console:

  • You have to switch the layout all the time;
  • Pressing Shift to capitalize the letters.

How do I rename?

Create new folders:

mkdir desktop ; mkdir doc; mkdir downloads ; mkdir images ; mkdir music ; mkdir public ; mkdir templates ; mkdir video
Enter fullscreen mode Exit fullscreen mode

Transferring content:

cp -r Рабочий\ стол/* desktop/ ; cp -r Загрузки/* downloads/ ; cp -r Документы/* doc/ ; cp -r Загрузки/* downloads/* ; cp -r Изображения/* images/ ; cp -r Музыка/* music/ ; cp -r Общедоступные/* public/ ; cp -r Примеры/* templates/ ; cp -r Видео/* video/
Enter fullscreen mode Exit fullscreen mode

In the ~/.config/user-dirs.dirs folder, replace this:

# 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_PUBLICSHARE_DIR="$HOME/Общедоступные"
XDG_DOWNLOAD_DIR="$HOME/Загрузки"
XDG_MUSIC_DIR="$HOME/Музыка"
XDG_VIDEOS_DIR="$HOME/Видео"
XDG_DESKTOP_DIR="$HOME/Рабочий стол"
XDG_DOCUMENTS_DIR="$HOME/Документы"
XDG_TEMPLATES_DIR="$HOME/Шаблоны"
XDG_PICTURES_DIR="$HOME/Картинки"
Enter fullscreen mode Exit fullscreen mode

On this:

# 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/doc"
XDG_MUSIC_DIR="$HOME/music"
XDG_PICTURES_DIR="$HOME/images"
XDG_VIDEOS_DIR="$HOME/video"
Enter fullscreen mode Exit fullscreen mode

Save.

Restart your computer;

Delete old folders.

Logo

更多推荐