Linux command
mcookie 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Example
mcookie
Example
mcookie --file [path/to/file]
Example
mcookie --file [path/to/file] --max-size [512]
Example
mcookie --verbose
Example
mcookie --version
说明
mcookie generates a 128-bit random hexadecimal number (32 hex characters). It is primarily used for generating X authority cookies but can be used for any purpose requiring random data.
参数
- -f, --file FILE
- Use file contents as additional entropy source
- -m, --max-size BYTES
- Maximum bytes to read from file
- -v, --verbose
- Print details about randomness sources
- -V, --version
- Display version information and exit
- -h, --help
- Display help text and exit
FAQ
What is the mcookie command used for?
mcookie generates a 128-bit random hexadecimal number (32 hex characters). It is primarily used for generating X authority cookies but can be used for any purpose requiring random data.
How do I run a basic mcookie example?
Run `mcookie` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -f, --file FILE do in mcookie?
Use file contents as additional entropy source