Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Web サイトをミラーリングしようとしていますが (もちろん許可を得て)、ファイルが foo.com にダウンロードされます。
wget -mkp http://foo.com
すべてのファイルを含む foo.com というフォルダーが表示されます。
ファイルを現在のディレクトリにダウンロードするにはどうすればよいですか?
編集:ファイル階層はまだ必要ですが、階層のルートを現在のディレクトリにしたい
-nはここであなたを助けるものです。
wget -nH --mirror http://example.com
「-nd」パラメータ内でwgetを使用してみてください
wget -nd --mirror http://example.com