← 返回命令列表

Linux command

airshare 命令

文件

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

常用示例

Send

airshare [mycode] [file.txt]

Receive

airshare [mycode]

Send

airshare [mycode] [file1.txt] [file2.txt]

Send text

airshare [mycode] -t "[Hello, World!]"

Host a receiving

airshare [mycode] -u

Send clipboard

airshare [mycode] -cs

Specify a custom port

airshare [mycode] [file.txt] -p [9000]

说明

airshare is a Python-based cross-platform file sharing tool that transfers files between devices on the same local network. It uses mDNS for device discovery and identifies transfers with a simple code word. Recipients access shared content by using the same code. The tool provides a simple alternative to complex file sharing setups, requiring no server configuration or account creation. Shared content can also be accessed via a web browser at `http://<code>.local:8000`.

参数

-p, --port _INTEGER_
Specify the port number for the server (default: 8000).
-t, --text _TEXT_
Send text content directly. Enclose multiple words in quotes.
-u, --upload
Host a receiving server to accept uploaded files.
-cs, --clip-send
Send clipboard contents as text.
-cr, --clip-receive
Receive content and copy it to the clipboard.
-fp, --file-path
Send files whose paths have been copied to the clipboard.
--version
Display version information.

FAQ

What is the airshare command used for?

airshare is a Python-based cross-platform file sharing tool that transfers files between devices on the same local network. It uses mDNS for device discovery and identifies transfers with a simple code word. Recipients access shared content by using the same code. The tool provides a simple alternative to complex file sharing setups, requiring no server configuration or account creation. Shared content can also be accessed via a web browser at `http://<code>.local:8000`.

How do I run a basic airshare example?

Run `airshare [mycode] [file.txt]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -p, --port _INTEGER_ do in airshare?

Specify the port number for the server (default: 8000).