• Home
  • Docker
  • Kubernetes
  • LLMs
  • Java
  • Ubuntu
  • Maven
  • Big Data
  • Archived
Big Data | HDFS - DFS Commands
  1. References
  2. Usage
  3. Command: ls
  4. Command: count
  5. Command: find
  6. Command: checksum
  7. Command: stat
  8. Command: test
  9. Command: cat
  10. Command: text
  11. Command: head
  12. Command: tail
  13. Command: mkdir
  14. Command: rmdir
  15. Command: put
  16. Command: get
  17. Command: copyFromLocal
  18. Command: copyToLocal
  19. Command: moveFromLocal
  20. Command: cp
  21. Command: mv
  22. Command: rm
  23. Command: expunge
  24. Command: appendToFile
  25. Command: truncate
  26. Command: touch
  27. Command: touchz
  28. Command: df
  29. Command: du
  30. Command: chmod
  31. Command: chown
  32. Command: chgrp
  33. Command: setfacl
  34. Command: getfacl
  35. Command: setfattr
  36. Command: getfattr
  37. Command: getmerge
  38. Command: setrep
  39. Command: createSnapshot
  40. Command: renameSnapshot
  41. Command: deleteSnapshot

  1. References
    See this page for more details about File System (FS) shell commands:
    https://hadoop.apache.org/docs/r3.1.2/hadoop-project-dist/hadoop-common/FileSystemShell.html
  2. Usage
    dfs run a filesystem command on the file system supported in Hadoop.

    The general command line syntax is: hdfs dfs COMMAND [GENERIC-OPTIONS] [COMMAND-OPTIONS]

    Generic options supported are:

    hdfs dfs print help when invoked without parameters or with "-help" parameter: hdfs dfs -help.

    To print the help of a specific command use the following syntax: hdfs dfsadmin -help COMMAND.


    To print the usage of a specific command use the following syntax: hdfs dfsadmin -usage COMMAND.

  3. Command: ls
    • Help:

    • Example:
  4. Command: count
    • Help:

    • Example:
  5. Command: find
    • Help:

    • Example:
  6. Command: checksum
    • Help:

    • Example:
  7. Command: stat
    • Help:

    • Example:
  8. Command: test
    • Help:

    • Example:
  9. Command: cat
    • Help:

    • Example:
  10. Command: text
    • Help:

    • Example:
  11. Command: head
    • Help:

    • Example:
  12. Command: tail
    • Help:

    • Example:
  13. Command: mkdir
    • Help:

    • Example:
  14. Command: rmdir
    • Help:

    • Example:
  15. Command: put
    • Help:

    • Example:
  16. Command: get
    • Help:

    • Example:
  17. Command: copyFromLocal
    • Help:

    • Example:
  18. Command: copyToLocal
    • Help:

    • Example:
  19. Command: moveFromLocal
    • Help:

    • Example:
  20. Command: cp
    • Help:

    • Example:
  21. Command: mv
    • Help:

    • Example:
  22. Command: rm
    • Help:

    • Example:
  23. Command: expunge
    • Help:

    • Example:
  24. Command: appendToFile
    • Help:

    • Example:
  25. Command: truncate
    • Help:

    • Example:
  26. Command: touch
    • Help:

    • Example:
  27. Command: touchz
    • Help:

    • Example:
  28. Command: df
    • Help:

    • Example:
  29. Command: du
    • Help:

    • Example:
  30. Command: chmod
    • Help:

    • Example:
  31. Command: chown
    • Help:

    • Example:
  32. Command: chgrp
    • Help:

    • Example:
  33. Command: setfacl
    • Help:

    • Example:
  34. Command: getfacl
    • Help:

    • Example:
  35. Command: setfattr
    • Help:

    • Example:
  36. Command: getfattr
    • Help:

    • Example:
  37. Command: getmerge
    • Help:

    • Example:
  38. Command: setrep
    • Help:

    • Example:
  39. Command: createSnapshot
    • Help:

    • Example:
  40. Command: renameSnapshot
    • Help:

    • Example:
  41. Command: deleteSnapshot
    • Help:

    • Example:
© 2025  mtitek