Occurs when a service command is executed
Shell-init:error Retrieving current Directory:getcwd:cannot access parent directories:no such file or directory
Chdir:error Retrieving current Directory:getcwd:cannot access parent directories:no such file or directory
This error occurs because the GETCWD command cannot get the working directory when the command is currently executing, possibly because the directory has been deleted by another program. For example: You first use a terminal to enter the directory/home/yangyz/test, and then open another terminal to delete the directory/home/yangyz/test, and then the first terminal to execute some commands or start some services, you will see the above error.
The solution is to use the CD to enter any actual directory, and then execute the corresponding command.
A shell-init error occurred while executing a shell command (directory does not exist)