zoukankan      html  css  js  c++  java
  • getcwd: cannot access parent directories的解决方法


    shell-init: error retrieving current directory: getcwd: cannot access parent directories: 没有那个文件或目录
    chdir: error retrieving current directory: getcwd: cannot access parent directories: 没有那个文件或目录
    1
    2
    该错误表示 getcwd 命令无法定位到当前工作目录。一般来说是因为你 cd 到了某个目录之后 rm 了这个目录
    这时去执行某些 service 脚本的时候就会报 getcwd 错误。
    只需要 cd 到任何一个实际存在的目录下在执行命令即可。
    出现这种现象的原因还有,当前用户没有当前目录的可执行权限
    ————————————————
    版权声明:本文为CSDN博主「UpUpUpUpUpUpUp」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
    原文链接:https://blog.csdn.net/u012599988/article/details/46651087

  • 相关阅读:
    Root of AVL Tree
    04-树4 是否同一棵二叉搜索树
    03-树3 Tree Traversals Again
    03-树2 List Leaves
    283. Move Zeroes
    506. Relative Ranks
    492. Construct the Rectangle
    476. Number Complement
    461. Hamming Distance
    389. Find the Difference
  • 原文地址:https://www.cnblogs.com/qiumingcheng/p/12321823.html
Copyright © 2011-2022 走看看