1 Star 0 Fork 0

houmingzhang/mycommand

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
addcommand 320 Bytes
一键复制 编辑 原始数据 按行查看 历史
houmingzhang 提交于 2020-10-01 11:10 +08:00 . 命令
#/bin/bash
DIR=${PWD}
DIR+='/'
DIR+=$1
TARGET="为可执行文件 "
TARGET+=${DIR}
ln -s ${DIR} /usr/bin/mycommand/$1
echo $?
if [ $? -eq 0 ]
then
{
TARGET+=" 制作/usr/bin/mycommand/ 目录 下的软链接成功!"
}
else
{
TARGET+=" 制作/usr/bin/mycommand/ 目录 下的软链接失败!"
}
fi
echo ${TARGET}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Shell
1
https://gitee.com/dtrylzhm/mycommand.git
git@gitee.com:dtrylzhm/mycommand.git
dtrylzhm
mycommand
mycommand
master

搜索帮助