I tried to do hdfs dfs -pwd
, but that command does not exist. So currently I am resorting to doing hdfs dfs -ls ..
followed by hdfs dfs -ls ../..
.
I also looked at the command listing for hdfs dfs
but did not see anything that looked promising.
Is there a more direct way to find the absolute path?
The file or directory has separate permissions for the user that is the owner, for other users that are members of the group, and for all other users. For files, the r permission is required to read the file, and the w permission is required to write or append to the file.
The -df command shows the configured capacity, available free space and used space of a file system in HDFS.
The diff command gives you the differences in an orderly way so content-wise you should be careful to use it in file comparison.
It is used when we are dealing with different file systems such as Local FS, HDFS etc. It is used when we are dealing for operations related to HDFS. This command should not be used, as it is deprecated. Even if you use it, it will send the command to hdfs dfs.
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 /
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With