Search Results for: ftp

12 wget command examples in Linux/Unix

What is wget command? The ability to download content from the world wide web (the internet) and store it locally on your system is an important feature to have. The wget(Web get) command line utility is a freely available package which can be used to retrieve files from the web using HTTP, HTTPS, and FTP protocols. In addition to the mentioned protocols, wget can also be used to download files through HTTP proxies. This is similar to cURL command which we covered recently. One very useful feature of wget is that it is non-interactive and therefore can be easily used in scripts and cron jobs. This allows wget to be used to download files as part of triggering a specific action or retrieve files at a specific point in time. It is also worth noting that wget is designed to work with unreliable network connections and has the ability to resume downloads interrupted due to network disruptions. We can use wget to download files recursively and also set the number of times wget will try to resume an interrupted download. In this article, we show you some useful examples implementing the features of the wget command we’ve mentioned thus far. Before proceeding with the examples, let’s first verify that the command is available on the system. [root@linuxnix ~]# which wget /usr/bin/wget [root@linuxnix ~]# rpm -qf /usr/bin/wget wget-1.12-10.el6.x86_64 [root@linuxnix ~]#...

Read More

18 curl command examples in Linux/Unix

What is curl command? The curl command is a powerful command line tool used to transfer data to or from a server. It can use any one of the supported protocols (HTTP, HTTPS, FTP, FTPS, SCP, SFTP, TFTP, DICT, TELNET, LDAP or FILE) for data transfer. In many aspects curl is similar to the wget command but curl is more feature rich as compared to wget. The cURL stands for “See URL“. The curl command is generally available by default on UNIX systems. Let’s verify that we have curl installed. [root@linuxnix ~]# which curl /usr/bin/curl [root@linuxnix ~]# rpm -qf /usr/bin/curl curl-7.19.7-52.el6.x86_64 In case your system does not have curl installed then you can install it manually. If you are using a RedHat based system then type: yum install curl If you are using a Debian based system then type: apt-get install curl In this article, we’ll go through some examples to understand some of the features curl provides. Example 1: Save a web page. [root@linuxnix ~]# curl https://www.linuxnix.com/ >> linuxnix.html % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 206k 0 206k 0 0 29952 0 --:--:-- 0:00:07 --:--:-- 179k [root@linuxnix ~]# The above example will save the content of the web page https://www.linuxnix.com/ to a file named linuxnix.html. Example 2: Specify output file name in curl command By...

Read More

17 Linux df command examples to understand it

The Command df “disk file system” is one of the very powerful tools every system admin should know. when mastering this command you should understand a lot of information about your local and remote file system details like mount point, disk utilization, partitions etc. In this post, we will find out some of the very common and useful ways to use “df” to monitor your file system. The df command read it’s output from /proc/mounts file and a kernel function statfs(2). This file /proc/mounts give you where block files are mounted and statfs(2) will help you query kernel to...

Read More

Over 16,000 readers, Get fresh content from “The Linux juggernaut”

Email Subscribe

ABOUT ME..!

My photo
My name is Surendra Kumar Anne. I hail from Vijayawada which is cultural capital of south Indian state of Andhra Pradesh. I am a Linux evangelist who believes in Hard work, A down to earth person, Likes to share knowledge with others, Loves dogs, Likes photography. At present I work at Bank of America as Sr. Analyst Systems and Administration. You can contact me at surendra (@) linuxnix dot com.