【发布时间】:2015-03-28 03:31:03
【问题描述】:
我试图在 .bashrc 文件中使用别名来存储我经常去的路径(Ubuntu 14.04),即alias pathname="/home/Dommol/test/next" 但是当我尝试使用别名cd pathname 时,我收到错误-bash: cd: pathname: No such file or directory。
问题:
如何让 bash 识别出我正在尝试使用别名 pathname 而不是尝试更改为目录 pathname?
顺便说一句,我可以将别名设为alias pathname="cd /home/Dommol/test/next",然后输入pathname 进行更改
【问题讨论】:
标签: bash