我在 /etc/profile.d/alias.sh 中为每个登录 shell 设置了别名。但是如果我运行 script.sh,我就不能使用那个别名。如何为子shell或子进程设置别名?
/etc/profile.d/alias.sh
alias rmvr='rm -rv'; alias cprv='cp -rv'; alias mvrv='mv -rv';
linux shell alias
alias ×1
linux ×1
shell ×1