O
O
Orkhan Hasanli2020-02-01 13:55:40
linux
Orkhan Hasanli, 2020-02-01 13:55:40

Are aliases possible for Russian directories in linux?

Good day!
The question is:
When working in bash (Linux Mint), you have to constantly escape spaces, which is not very convenient, and switching the layout every time is also not very good.
For example, cd /home/user/Рабочий\ стол
Is it possible to create aliases for directories. For example, instead Рабочий\ столof typing Desktop?
The Russian-language version of LINUX is installed. Do not offer a solution to the issue with installing the English version of linux and then switching the language to Russian, although the option is working)))
Thank you in advance)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
xotkot, 2020-02-01
@azerphoenix

in the file ~/.config/user-dirs.dirs we change/write the path and name for the desktop:

XDG_DESKTOP_DIR="$HOME/desktop"

just in case, you can also duplicate it in your shell profile, ~/.bash_profile for bash or ~/.zprofile for zsh, or in another shell that you use
export XDG_DESKTOP_DIR="$HOME/desktop"

then we update the database and see if it was registered correctly
$ systemd-path
$ systemd-path user-desktop

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question