Curl Command
Categories:
What is Linux curl Command?
In this tutorial we learn how to use curl command.
From the man page:
curl is a tool for transfering data from or to a server. It supports these protocols: DICT, FILE, FTP, FTPS, GOPHER, GOPHERS, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, MQTT, POP3, POP3S, RTMP, RTMPS, RTSP, SCP, SFTP, SMB, SMBS, SMTP, SMTPS, TELNET or TFTP. The command is designed to work without user interaction.
curl offers a busload of useful tricks like proxy support, user authentication, FTP upload, HTTP post, SSL connections, cookies, file transfer resume and more.
curl Syntax
curl <options> <url>
curl Examples
curl Command Manual / Help
We can use man
and info
command to see the manual page of curl command.
curl command also have --help
option to show list of options.
To open man page for curl command we can use command below. To exit man or info page you can press q
.
man curl
To open info page for curl command we can use command below.
info curl
To open help page from curl command we can run command below.
curl --help
References
You can find more information about curl from the following links:
Related Linux Commands
You can read tutorials of related Linux commands below:
Summary
In this tutorial we learn how to use curl with practical examples.
Visit our Linux Commands guide to learn more about using command line interface in Linux.