我最近在我的计算机(Ubuntu20.04)中安装了Chimera (https://www.cgl.ucsf.edu/chimera/),安装在/home/roy/嵌合体中(稍后我将询问如何更改程序目录),所以我使用以下命令访问程序:
cd chimera
cd bin
./chimera
我可以创建一个名为chimera的脚本来执行这个程序吗?所以,只要在home/roy中输入脚本名,我就可以访问程序了?
我不知道为什么,但我的Bash别名似乎不起作用。这是我的.bashrc文件
# v 0.0.1 - 7/03/12
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
# expanding history to 10000 command
我试图为我在shell脚本中经常使用的路径创建一个“别名”。我试过,但失败了:
myFold="~/Files/Scripts/Main"
cd myFold
bash: cd: myFold: No such file or directory
我该怎么做呢?
但是,cd ~/Files/Scripts/Main可以工作。