Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
别名命令不起作用,我相信我遵循正确的语法,例如:
alias np='ls -la'
我也尝试过语音标记:
alias np="ls -la"
在这两种情况下,对 np 的响应都是
np: Command not found.
但是,如果我在没有参数的情况下运行 alias 它会列出当前别名(因为记录 'nl' 尚未列出)。
使用 csh 时,不允许使用等号。上面应该写成:
alias np "ls -la"