如何让linux用户自定义的命令alias永久生效

2025年03月22日 11:57
有2个网友回答
网友(1):

写到/etc/profile、/etc/bashrc,对全体用户生效 写入~/.bash_profile、~/.bashrc,只对当前用户生效

网友(2):

加到.bashrc里