Недавно установленный hirsute = 21.04. Установил из пакета, создал свою личную учетную запись, .bashrc по умолчанию присутствует в моем домашнем каталоге и, чтобы убедиться, что также есть .bash_aliases. Оба упоминают
псевдоним ll='ls -alF'
по-прежнему этот псевдоним недоступен после входа в систему. Это ошибка или я что-то упускаю?
NAME="Ubuntu"
VERSION="21.04 (Hirsute Hippo)"
karel@schal:~$ pwd ; ls -al .bash*
/home/karel
-rwxr-xr-x 1 karel users 53 Sep 26 06:22 .bash_aliases
-rw------- 1 karel users 9834 Sep 26 06:23 .bash_history
-rw-r--r-- 1 karel users 3771 Aug 31 23:17 .bashrc
karel@schal:~$ cat .bash_aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
karel@schal:~$ ll
ll: command not found
отредактировано после не очень дружественного комментария, чтобы добавить:
karel@wiske:~$ ssh karel@192.168.0.210
karel@192.168.0.210's password:
Welcome to Ubuntu 21.04 (GNU/Linux 5.11.0-34-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
0 updates can be applied immediately.
The list of available updates is more than a week old.
To check for new updates run: sudo apt update
Last login: Sun Sep 26 09:37:21 2021
karel@schal:~$ alias
karel@schal:~$ /bin/bash
karel@schal:~$ alias
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
alias grep='grep --color=auto'
alias l='ls -CF'
alias la='ls -A'
alias ll='ls -alF'
alias ls='ls --color=auto'
и это поведение идентично, независимо от того, входите ли вы в систему через ssh или в локальной графической среде или на локальной текстовой консоли (dev/tty5 и подобные )
Также по запросу выдержка из ~/.bashrc:
# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
[далее отредактировано по запросу]
karel@schal:~$ ls -al ~/.bash_profile ~/.bash_login ./.profile
ls: cannot access '/home/karel/.bash_profile': No such file or directory
ls: cannot access '/home/karel/.bash_login': No such file or directory
ls: cannot access './.profile': No such file or directory
karel@schal:~$ ps -p $$ | tail -n1 | awk '{print $NF}'
bash