I use this command to download the entire wikipedia content of main page : wget -p -k https://en.wikipedia.org/wiki/Main_PageBut I receive an error when try to combine it with -O in order to rename the downloaded parent dir : wget -p -k https://en.wikipedia.org/wiki/Main_Page -O mydirCannot specify both -k or --convert-file-only and -O if multiple URLs are given, or in combinationwith -p or -r. See the manual for details.How to download the URL entirely and name the downloaded parent dir ?
Rename wget downloaded parent dir
linux;wget
Eithermkdir mydir && chdir mydir && \    wget -p -k https://en.wikipedia.org/wiki/Main_Page orwget -p -k https://en.wikipedia.org/wiki/Main_Pagemv -Tf en.wikipedia.org mydirDepending on where exactly you want it