9.9. swift list


Usage: swift list
Lists the containers for the account or the objects for a container.

Positional arguments

[container]


        Name of container to list object in.

Optional arguments

-l, --long


        Long listing format, similar to ls -l.

--lh


        Report sizes in human readable format similar to
      ls -lh.

-t, --totals


        Used with -l or --lh, only report totals.

-p <prefix>, --prefix <prefix>


      Only list items beginning with the prefix.

-d <delim>, --delimiter <delim>


      Roll up items with the given delimiter. For containers
      only. See OpenStack Swift API documentation for what
      this means.

Red Hat logoGithubredditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat Documentation

Legal Notice

Theme

© 2026 Red Hat
Back to top