我想将别名直接回显到我的.bashrc文件中。这是我正在使用的:
.bashrc
echo alias cdear='cd | clear' >> .bashrc
但是, in.bashrc中的新行不包含引号。
我还希望在 .bashrc 的末尾加上最后一行的换行符。
如何更改我的命令以便:
linux shell alias bashrc
alias ×1
bashrc ×1
linux ×1
shell ×1