$ PS1="[\h:\W] # "
$ history -d NN
$ . /usr/share/bash-completion/bash_completion
$ more .profile
...
. ~/.bashrc
...
$ cat .bashrc
или
# cat /etc/bash.bashrc
...
#TMOUT=900
#umask 027
export HISTCONTROL=ignorespace:ignoredups:erasedups
#unset HISTFILE
HISTSIZE=20000
HISTFILESIZE=20000
# export PATH="$PATH:/opt/mssql-tools/bin"
#alias s='sudo'
s() {
sudo "$@"
}
complete -F _command s
alias ssn2='ssh node2'
scn2() {
scp $1 node2:$1
}
...
$ source .bashrc
# (echo '"\e[A": history-search-backward'; echo '"\e[B": history-search-forward') >> /etc/inputrc
или
$ cat /etc/inputrc
или
$ cat .inputrc
"\e[A": history-search-backward
"\e[B": history-search-forward
$ bind -f .inputrc
$ bind -f /etc/inputrc