Command Line Helper Alias

This is a small command line helper to quickly lookup the options and helpers available to different commands.

First you need to add a new alias to your terminal I use zsh so I can edit the file vi ~/.zshrc.

And add the following.

function lookup() {

This will go to the URL and return the response of the command.

Now if I want to lookup information about a certain command like curl I can type lookup curl and it will return following.

# Download a single file

# Download a file and specify a new filename
curl -o

# Download multiple files
curl -O URLOfFirstFile -O URLOfSecondFile

# Download all sequentially numbered files (1-24)

# Download a file and follow redirects
curl -L

# Download a file and pass HTTP Authentication
curl -u username:password URL 

# Download a file with a Proxy
curl -x http://addressiwantto.access

# Download a file from FTP
curl -u username:password -O

# Get an FTP directory listing
curl ftp://username:[email protected]

# Resume a previously failed download
curl -C - -o

# Fetch only the HTTP headers from a response
curl -I

# Fetch your external IP and network info as JSON

# Limit the rate of a download
curl --limit-rate 1000B -O

# POST to a form
curl -F "name=user" -F "password=test"

curl -H "Content-Type: application/json" -X POST -d '{"user":"bob","pass":"123"}'

# POST data from the standard in / share data on
curl -F 'sprunge=<-'

Showing me all options for the curl command.


Reliable uptime monitoring and instant alerts for any website downtime.

  • Uptime Monitoring
  • Performance Monitoring
  • SSL Certificate Alerts
  • Domain Monitoring
  • DNS Checker
  • XML Sitemap Monitoring