Skip to content

无法输入命令 #22

Answered by yliu7949
DavetheSlayer asked this question in Q&A
Nov 12, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

通过 Terminal 进入 ks 文件所在的文件夹后,首先执行 chmod +x ./ks 为 ks 文件添加可执行权限,然后执行 ./ks 即可。如果要查看版本号则执行 ./ks version 命令。

还可以在为 ks 文件添加可执行权限后,将 ks 文件放到 /usr/local/bin/ 路径下(或将 ks 文件添加到环境变量中来避免 command not found 的错误),这样在任意文件夹都可以通过终端直接执行 ks version 等命令,比 ./ks version 等更为简洁。

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@DavetheSlayer
Comment options

Answer selected by DavetheSlayer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants