def dfs(args=None, properties=None, hadoop_conf_dir=None):
    """
    Run the Hadoop file system shell.

    All arguments are passed to :func:`run_class`.
    """
    # run FsShell directly (avoids "hadoop dfs" deprecation)
    return run_class(
        "org.apache.hadoop.fs.FsShell", args, properties,
        hadoop_conf_dir=hadoop_conf_dir, keep_streams=True
    )