OS Manuals

/usr/bin/dufs

Distinctive utility file server supporting static serving, uploads, search, access control and WebDAV

From dufs 0.47.0-r2 (enterprise-packages), captured 2026-11-08 by running dufs --help (exit 0). permalink

Dufs is a distinctive utility file server - https://github.com/sigoden/dufs

Usage: dufs [OPTIONS] [serve-path]

Arguments:
  [serve-path]  Specific path to serve [default: .]

Options:
  -c, --config <file>        Specify configuration file
  -b, --bind <addrs>         Specify bind address or unix socket
  -p, --port <port>          Specify port to listen on [default: 5000]
      --path-prefix <path>   Specify a path prefix
      --hidden <value>       Hide paths from directory listings, e.g. tmp,*.log,*.lock
  -a, --auth <rules>         Add auth roles, e.g. user:pass@/dir1:rw,/dir2
  -A, --allow-all            Allow all operations
      --allow-upload         Allow upload files/folders
      --allow-delete         Allow delete files/folders
      --allow-search         Allow search files/folders
      --allow-symlink        Allow symlink to files/folders outside root directory
      --allow-archive        Allow download folders as archive file
      --allow-hash           Allow ?hash query to get file sha256 hash
      --enable-cors          Enable CORS, sets `Access-Control-Allow-Origin: *`
      --render-index         Serve index.html when requesting a directory, returns 404 if not found
                             index.html
      --render-try-index     Serve index.html when requesting a directory, returns directory listing
                             if not found index.html
      --render-spa           Serve SPA(Single Page Application)
      --assets <path>        Set the path to the assets directory for overriding the built-in assets
      --log-format <format>  Customize http log format
      --log-file <file>      Specify the file to save logs to, other than stdout/stderr
      --compress <level>     Set zip compress level [default: low] [possible values: none, low,
                             medium, high]
      --completions <shell>  Print shell completion script for <shell> [possible values: bash,
                             elvish, fish, powershell, zsh]
      --tls-cert <path>      Path to an SSL/TLS certificate to serve with HTTPS
      --tls-key <path>       Path to the SSL/TLS certificate's private key
  -h, --help                 Print help
  -V, --version              Print version
Options (26)
OptionDescriptionSource
-c, --config fileSpecify configuration filehelp
-b, --bind addrsSpecify bind address or unix sockethelp
-p, --port portSpecify port to listen on [default: 5000]help
--path-prefix pathSpecify a path prefixhelp
--hidden valueHide paths from directory listings, e.g. tmp,*.log,*.lockhelp
-a, --auth rulesAdd auth roles, e.g. user:pass@/dir1:rw,/dir2help
-A, --allow-allAllow all operationshelp
--allow-uploadAllow upload files/foldershelp
--allow-deleteAllow delete files/foldershelp
--allow-searchAllow search files/foldershelp
--allow-symlinkAllow symlink to files/folders outside root directoryhelp
--allow-archiveAllow download folders as archive filehelp
--allow-hashAllow ?hash query to get file sha256 hashhelp
--enable-corsEnable CORS, sets `Access-Control-Allow-Origin: *`help
--render-indexServe index.html when requesting a directory, returns 404 if not found index.htmlhelp
--render-try-indexServe index.html when requesting a directory, returns directory listing if not found index.htmlhelp
--render-spaServe SPA(Single Page Application)help
--assets pathSet the path to the assets directory for overriding the built-in assetshelp
--log-format formatCustomize http log formathelp
--log-file fileSpecify the file to save logs to, other than stdout/stderrhelp
--compress levelSet zip compress level [default: low] [possible values: none, low, medium, high]help
--completions shellPrint shell completion script for <shell> [possible values: bash, elvish, fish, powershell, zsh]help
--tls-cert pathPath to an SSL/TLS certificate to serve with HTTPShelp
--tls-key pathPath to the SSL/TLS certificate's private keyhelp
-h, --helpPrint helphelp
-V, --versionPrint versionhelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.