在shell脚本里切换目录 #!/bin/sh cd /data/usr/data/ pwd ls -l 参考链接:https://blog.csdn.net/kaikai136412162/article/details/80744380