programmer12
programmer12

Reputation: 111

Wget command does not download the github repository, "Not a directory" error?

I need to download the contents of this page: https://github.com/kata-containers/packaging/tree/master/kernel

Unfortunately, :

wget https://github.com/kata-containers/packaging/tree/master/kernel

is not working. It downloads something called 'kernel' and then when I do 'cd kernel' I get "-bash: cd: kernel: Not a directory."

Why is wget not downloading the contents of the directory?

Upvotes: 0

Views: 1150

Answers (1)

Scott S
Scott S

Reputation: 351

"kernel" is the HTML file for the page you are looking at. You can download the entire repo at https://github.com/kata-containers/packaging/archive/master.zip and peruse the kernel subfolder.

Upvotes: 1

Related Questions