After rebooting the terminal, the alias commands added by me fly off. How to set the alias command correctly so that they remain in the system?

    1 answer 1

    add them to the "resource" file of your shell. shell name can be found, for example, like this:

    $ echo $SHELL 

    for example, the answer would be:

     /bin/bash 

    that means the shell is bash , and the “resource” file is ~/.bashrc

    and if the answer is, for example, /bin/zsh , then the shell is zsh , and the file is ~/.zshrc

    this file is interpreted by the shell each time it is run.