Linux command
transmission-create 命令
网络
复制后可按需替换文件名、目录或参数。
常用示例
Create a torrent with a tracker
transmission-create -o [output.torrent] -t [http://tracker.example.com/announce] [file_or_directory]
Create with multiple trackers
transmission-create -o [output.torrent] -t [tracker1] -t [tracker2] [file_or_directory]
Create a private torrent
transmission-create -p -o [output.torrent] -t [tracker] [file_or_directory]
Create with comment
transmission-create -c "[My torrent description]" -o [output.torrent] -t [tracker] [file]
Create with custom piece size
transmission-create -s [2048] -o [output.torrent] -t [tracker] [file]
Create with custom name
transmission-create -n "[Custom Name]" -o [output.torrent] -t [tracker] [file]
说明
transmission-create generates .torrent files from files or directories. It's part of the Transmission BitTorrent client suite and provides command-line torrent creation without needing the GUI. The tool calculates SHA1 checksums for all pieces in the source content and bundles them with tracker information into the torrent file. Piece size is automatically selected based on content size but can be overridden. Multiple trackers can be added for redundancy. Private torrents disable DHT and peer exchange, requiring users to obtain peers only from the specified trackers.
参数
- -o, --outfile _file_
- Save the generated .torrent to this filename.
- -t, --tracker _url_
- Add tracker announce URL. Can be used multiple times.
- -p, --private
- Mark torrent as private (for private trackers).
- -c, --comment _text_
- Add a comment to the torrent metadata.
- -s, --piecesize _KiB_
- Set piece size in KiB (default auto-calculated).
- -n, --name _name_
- Override default torrent name derived from source.
- -h, --help
- Display help and exit.
- -V, --version
- Display version and exit.
FAQ
What is the transmission-create command used for?
transmission-create generates .torrent files from files or directories. It's part of the Transmission BitTorrent client suite and provides command-line torrent creation without needing the GUI. The tool calculates SHA1 checksums for all pieces in the source content and bundles them with tracker information into the torrent file. Piece size is automatically selected based on content size but can be overridden. Multiple trackers can be added for redundancy. Private torrents disable DHT and peer exchange, requiring users to obtain peers only from the specified trackers.
How do I run a basic transmission-create example?
Run `transmission-create -o [output.torrent] -t [http://tracker.example.com/announce] [file_or_directory]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -o, --outfile _file_ do in transmission-create?
Save the generated .torrent to this filename.