2021-04-25发表2026-04-29更新学习 / Shell几秒读完 (大约74个字)Shell命令记录1、shell结果赋值变量 pwd 的输出被赋给变量 currPath,打印currPath,创建bin目录 123currPath=$(pwd) 或 $ currPath=`pwd`echo $currPathmkdir $currPath/bin 2、根据pid查询Jar位置 1、使用命令查询pid 2、根据pid查询jar路径 12ps -ef|grep javall /proc/$pid/cwd Shell命令记录https://blog.sadboy.cn/2021/04/25/2021-4-25-LinuxShell/作者sadboy发布于2021-04-25更新于2026-04-29许可协议#studyShell