Quantcast
Channel: Hortonworks » All Topics
Viewing all articles
Browse latest Browse all 5121

Howto show hidden file or directory?

$
0
0

Replies: 1

Hi,

Using HDP 2.1.2 I have created a snapshot by:

hdfs dfsadmin -allowSnapshot /user/myTestDir1
hdfs dfs -createSnapshot /user/myTestDir1
Console Output: Created snapshot /user/myTestDir1/.snapshot/s20140704-101231.886

Let’s say I forgot later that /user/myTestDir1 contains snapshots. I would like to list the entire content of that path, including hidden files or folders, by using:

hdfs dfs -ls /user/myTestDir1

But the hidden directory .snapshot is not visible. To see it’s content I must explicitly specify the path of the hidden directory

hdfs dfs -ls /user/myTestDir1/.snapshot/

QUESTION: Can you please suggest a way to list hidden file / directory in HDFS?
Thanks in advance for any help


Viewing all articles
Browse latest Browse all 5121

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>