wget: get file from website

(1) for downloading  “http://www.hitel.net/~myname”

# wget http://www.hitel.net/~myname/index.html

"http://" can be ignored and “index.html”, too.

# wget www.hitel.net/~myname/

(2) get a structure and relative data: option -r (recursive) 

# wget -r www.hitel.net/~myname/


(3) set searching depth: -l (level), default is 5

# wget -r -l 5 www.hitel.net/~myname/

(4) get only sub-directory link : -np (No-Parent)

# wget -r -np www.hitel.net/~myname/doc/lecture/lecture.html

(5) get specified file: -A (Accept)

# wget -r -np -A html,htm www.hitel.net/~myname/

also -R (Reject) option is for excepting specified data

# wget -r -R gif,jpg,jpeg www.hitel.net/~myname/

(6) no message: -q (quiet)

(7) only simple message: -nv (non-verbose)

(8) no overlap: -nc (not-clobber)

2 thoughts on “wget: get file from website

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s