• missing xbfish.com image

Tag Archives: command line

[Linux] Downloading files through Terminal (command line)

To download files through Linux Terminal, we can invoke the command wget.

Wget should be installed in all Linux distros. Otherwise, you may install it as follows:

Ubuntu/Debian

apt-get install wget

Fedora/CentOS

yum install wget

Wget will download the file and place it in your current navigated folder in the Terminal.

To download a single file from a webpage, issue the following command:

wget http://www.example.com/file.pdf

If you would like to download the entire website, include the -R (recursive) option:

wget -r http://www.example.com

Suppose you wanted to download all images from the website, include -R and -A options:

wget -r -A png,gif,jpg http://www.example.com

For more examples, please refer to http://www.go2linux.org/tips-and-tricks-of-wget-to-download-files or the official webpage.

[Linux] Scrolling up and down in Ubuntu Server command line

Sometimes when you execute a command, the output get too lengthy which is past the screen.

Thankfully, there are keyboard shortcuts.

To scroll up:

Shift + Page Up

To scroll down:

Shift + Page Down

Hope this can be useful for you :D