You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

wget命令中-g参数的用法咨询:man手册未找到相关说明

Understanding the -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 -g flag 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 5 for 5 levels deep), but here it's followed by /tmp/l—a file path. Normally, you'd use -O to specify an output file path.
    • -r in 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.

How to figure out what -g does specifically

If you have access to the system where this command is being run, try these steps:

  1. Run wget --help—custom parameters are often listed here even if they're missing from the man pages.
  2. Check the Wget version with wget -V—this might show if it's a patched build or from a non-standard repository.
  3. 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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.07 11:52:38