因此,在重新格式化之前(为了摆脱Windows),我只需使用以下命令打开文档,方法是将其放在~/.bashrc文件的末尾:
alias commandless= 'gnome-open ./Documents/the-linux-command-line.pdf; gnome-open ./Documents/linux.odt'但是现在每当我启动终端时,它都会说:
bash: alias: gnome-open ./Documents/the-linux-command-line.pdf; gnome-open ./Documents/linux.odt: not found在输入任何内容之前,当我运行命令时,什么都不会发生,甚至没有错误消息。
发布于 2015-10-12 16:25:28
使用双引号代替单引号:
alias newcommand="full path of the binary to be executed"而不是:
alias newcommand='full path of the binary to be executed'在左边或右边都没有接近相等的空格。
发布于 2015-10-12 15:23:53
在=和开头的'之间有一个空格。把它移开。
$ alias foo= 'bar baz'
bash: alias: bar baz: not foundhttps://askubuntu.com/questions/684635
复制相似问题