为comand line Linux创建可执行文件 [英] Create executable file for comand line Linux
本文介绍了为comand line Linux创建可执行文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我登录Linux时,我通常直接访问同一个文件夹,我想知道是否代替输入:
$ cd Document / .... / .... / .... / .... / ....
我可以创建一个可执行文件,所以我可以输入 ./ csFolder
,它会直接到那里。
<您可以在
.bashrc
中添加一个shell函数,然后重新启动终端: csf(){
cd Document /..../..../..../..../。 ...
}
每当你想去那个目录, code> csf 。
When ever I log into Linux I usually go straight to the same folder i was wondering if in stead of typing in:
$cd Document/..../..../..../..../....
I could create an executable so I could just type ./csFolder
and it would go straight there.
解决方案
You can add a shell function in your .bashrc
and restart your terminal:
csf() {
cd Document/..../..../..../..../....
}
Whenever you want to go to that directory, you just run csf
.
这篇关于为comand line Linux创建可执行文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文