How save alias for often commands in Kubuntu 18.04?

How save alias for often commands in Kubuntu 18.04?
0

Hello,
Using konsole in Kubuntu 18.04 I make alias for often commands with alias command.
But restarting OS I see that my commands are lost.
Searching in net I found a solution with
~/.bash_profile
file, but I did not find any .bash_profile file on my OS…
Have I create it it? In which format ?

Which is right way ?

Thanks!

The default .bashrc file should have these lines (if not, just add them)

if [ -f ~/.bash_aliases ]; then
    . ~/.bash_aliases
fi

You can then add aliases in a .bash_aliases file.

1 Like