如何检测运行我的 shell 脚本的目录的名称(或者更好的是整个路径)?
最佳答案
什么 shell ?什么操作系统?
对于初学者尝试
man pwd
$PWD
关于shell - 如何检测我运行 shell 脚本的当前目录?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1817529/
标签 shell
如何检测运行我的 shell 脚本的目录的名称(或者更好的是整个路径)?
最佳答案
什么 shell ?什么操作系统?
对于初学者尝试
man pwd
$PWD
关于shell - 如何检测我运行 shell 脚本的当前目录?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1817529/
相关文章:
linux - 一行设置环境变量并执行命令,在sh和bash中得到不同的结果
java - 如何在java中使用 "dump"neo4j shell命令
python - 通过 python 运行可执行文件会混淆解释器/操作系统
python - ffprobe 按时长过滤视频,命令打印但不返回时长
python - 为什么 Popen.terminate() 在 Windows 上终止使用命令解释器 (cmd.exe) 运行的子进程?
linux - 从 bash 脚本向 Mongo shell 传递命令,而不停止交互式 Mongo shell