Attempting to autocomplete in terminal gives error "getcwd: cannot access parent directories: No such file or directory"
Issue
-
The automatic complete of commands in the terminal is not functioning and returns the error
symlink-hook: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
. -
This error is typically seen multiple times, for example, when attempting to complete for the
pvs
command:
[root@cirno test]# pvsymlink-hook: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
symlink-hook: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
symlink-hook: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
symlink-hook: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
symlink-hook: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
symlink-hook: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
symlink-hook: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
symlink-hook: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Environment
- Red Hat Enterprise Linux
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.