← 返回命令列表

Linux command

updog 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Start server

updog

Custom port

updog -p [8080]

Enable uploads

updog --upload

With password

updog --password [secret]

Custom directory

updog -d [path/to/directory]

说明

updog is a Python-based HTTP file server designed as a modern replacement for Python's built-in SimpleHTTPServer. It serves files from a directory with a clean web interface that supports browsing, downloading, and optionally uploading files. The server provides features beyond basic file serving, including password protection for access control, SSL/HTTPS support, and a responsive web interface. File uploads can be enabled with the --upload flag, making it useful for quickly transferring files between machines on a local network. updog is intended for development and ad-hoc file sharing, not production use. It starts quickly with sensible defaults and can be customized with command-line options for port, directory, authentication, and encryption.

参数

-p _PORT_
Port number.
-d _DIR_
Directory to serve.
--upload
Allow uploads.
--password _PASS_
Set password.
--ssl
Enable HTTPS.

FAQ

What is the updog command used for?

updog is a Python-based HTTP file server designed as a modern replacement for Python's built-in SimpleHTTPServer. It serves files from a directory with a clean web interface that supports browsing, downloading, and optionally uploading files. The server provides features beyond basic file serving, including password protection for access control, SSL/HTTPS support, and a responsive web interface. File uploads can be enabled with the --upload flag, making it useful for quickly transferring files between machines on a local network. updog is intended for development and ad-hoc file sharing, not production use. It starts quickly with sensible defaults and can be customized with command-line options for port, directory, authentication, and encryption.

How do I run a basic updog example?

Run `updog` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -p _PORT_ do in updog?

Port number.