hdfs dfs -pwd
does not exist because there is no “working directory” concept in HDFS when you run commands from command line.
You cannot execute hdfs dfs -cd
in HDFS shell, and then run commands from there, since both HDFS shell and hdfs dfs -cd
commands do not exist too, thus making the idea of working directory redundant.
Your home dir is always the prefix of the path, unless it starts from /
.