HDFS Dfs ls

Share

                            HDFS Dfs ls

In Hadoop Distributed File System (HDFS), the hdfs dfs -ls command is used to list the files and directories within a specified HDFS directory. This command provides a directory listing, showing the names, permissions, replication factors, block sizes, modification timestamps, and owners of files and directories in HDFS.

Here’s how you can use the hdfs dfs -ls command:

bash
hdfs dfs -ls <path>
  • <path>: This is the HDFS path for which you want to list the contents. It can be the root directory (“/”), a specific directory, or a file within HDFS.

For example, to list the contents of the root directory in HDFS, you can use the following command:

bash
hdfs dfs -ls /

If you want to list the contents of a specific directory, you can provide the directory path as the argument:

bash
hdfs dfs -ls /user/hadoop/data/

Hadoop Training Demo Day 1 Video:

 
You can find more information about Hadoop Training in this Hadoop Docs Link

 

Conclusion:

Unogeeks is the No.1 IT Training Institute for Hadoop Training. Anyone Disagree? Please drop in a comment

You can check out our other latest blogs on Hadoop Training here – Hadoop Blogs

Please check out our Best In Class Hadoop Training Details here – Hadoop Training

💬 Follow & Connect with us:

———————————-

For Training inquiries:

Call/Whatsapp: +91 73960 33555

Mail us at: info@unogeeks.com

Our Website ➜ https://unogeeks.com

Follow us:

Instagram: https://www.instagram.com/unogeeks

Facebook:https://www.facebook.com/UnogeeksSoftwareTrainingInstitute

Twitter: https://twitter.com/unogeeks


Share

Leave a Reply

Your email address will not be published. Required fields are marked *