wget命令中-g参数的用法咨询:man手册未找到相关说明
-g Parameter in That Custom Wget Command Hey there! Let's unpack this because you're right—standard, unmodified Wget doesn't have a -g parameter at all, which is why you can't find it in the man wget pages. Here's what's likely going on:
This is a custom-modified Wget build
Many organizations, sysadmins, or even individual users will compile Wget from source with custom patches or added parameters to fit their specific needs. The-gflag you're seeing is almost certainly a non-standard addition unique to that particular Wget installation.The rest of the command also hints at non-standard behavior
Let's look at the other flags used:- Standard Wget uses
-l(or--level) to set recursion depth (e.g.,-l 5for 5 levels deep), but here it's followed by/tmp/l—a file path. Normally, you'd use-Oto specify an output file path. -rin standard Wget enables recursive downloading, but it doesn't take a path argument like/1; the target URL/path is usually the final argument in the command.
- Standard Wget uses
How to figure out what -g does specifically
If you have access to the system where this command is being run, try these steps:
- Run
wget --help—custom parameters are often listed here even if they're missing from the man pages. - Check the Wget version with
wget -V—this might show if it's a patched build or from a non-standard repository. - If possible, ask the user who ran the command or check local documentation/script comments—they might know the custom functionality added.
内容的提问来源于stack exchange,提问作者xiaoez

