💡 O cheat.sh é uma ferramenta de consulta rápida para programadores, sysadmins e/ou SRE’s, oferecendo exemplos de comandos, códigos e explicações sobre o que cada um deles faz exatamente. Ele pode ser usado desta maneira: curl cheat.sh/comando Exemplo: curl cheat.sh/curl fernando@debianlab:~$ curl cheat.sh/curl cheat.sheets:curl # curl # Command-line tool for transferring data with URL syntax # Process a single GET request, and show its output on stdout. curl http://path.to.the/file # Download a file and specify a new filename. curl https://lnkd.in/d5ZPWUCP -o new_file.zip # Download multiple files. curl -O URLOfFirstFile -O URLOfSecondFile # Download all sequentially-numbered files (1-24). curl https://lnkd.in/dAUYBbDv # Download a file and follow redirects. curl -L http://example.com/file # Download a file and pass HTTP Authentication. curl -u username:password URL # Download a file with a Proxy. curl -x proxysever.server.com:PORT http://addressiwantto.access # Download a file from FTP. curl -u username:password -O https://lnkd.in/d55yj_uf # Get an FTP directory listing. curl https://lnkd.in/dFe9X5m9 # Resume a previously failed download. curl -C - -o partial_file.zip https://lnkd.in/d5ZPWUCP # Fetch only the HTTP headers from a response. curl -I http://example.com # Fetch your external IP and network info as JSON. curl https://lnkd.in/d_FWj5Qv # Limit the rate of a download. curl --limit-rate 1000B -O http://path.to.the/file # POST to a form. curl -F "name=user" -F "password=test" http://example.com # POST JSON Data. curl -H "Content-Type: application/json" -X POST -d '{"user":"bob","pass":"123"}' http://example.com # POST data from the standard in / share data on sprunge.us. curl -F 'sprunge=<-' sprunge.us Maiores detalhes lá no meu Blog: https://lnkd.in/djBgzzxJ Appmax #sre #devops #linux
💡 O cheat.sh é uma ferramenta de consulta rápida para programadores, sysadmins e/ou SRE’s, oferecendo exemplos de comandos, códigos e explicações sobre o que cada um deles faz exatamente. Ele pode ser usado desta maneira: curl cheat.sh/comando Exemplo: curl cheat.sh/curl fernando@debianlab:~$ curl cheat.sh/curl cheat.sheets:curl # curl # Command-line tool for transferring data with URL syntax # Process a single GET request, and show its output on stdout. curl http://path.to.the/file # Download a file and specify a new filename. curl https://lnkd.in/d5tffu9S -o new_file.zip # Download multiple files. curl -O URLOfFirstFile -O URLOfSecondFile # Download all sequentially-numbered files (1-24). curl https://lnkd.in/dCxVmFpw # Download a file and follow redirects. curl -L http://example.com/file # Download a file and pass HTTP Authentication. curl -u username:password URL # Download a file with a Proxy. curl -x proxysever.server.com:PORT http://addressiwantto.access # Download a file from FTP. curl -u username:password -O https://lnkd.in/dEJbmYsc # Get an FTP directory listing. curl https://lnkd.in/dpdUvGvq # Resume a previously failed download. curl -C - -o partial_file.zip https://lnkd.in/d5tffu9S # Fetch only the HTTP headers from a response. curl -I http://example.com # Fetch your external IP and network info as JSON. curl https://lnkd.in/dus5yiEn # Limit the rate of a download. curl --limit-rate 1000B -O http://path.to.the/file # POST to a form. curl -F "name=user" -F "password=test" http://example.com # POST JSON Data. curl -H "Content-Type: application/json" -X POST -d '{"user":"bob","pass":"123"}' http://example.com # POST data from the standard in / share data on sprunge.us. curl -F 'sprunge=<-' sprunge.us #sre #devops #linux https://lnkd.in/d-ruUVGc
Obrigado por compartilhar, irei testar 🤘🏼
Muito obrigado, de grande valia.
Da hora, Fernando
Obrigado por compartilhar conosco, Fernando!
O cheat.sh é sensacional, nem sempre lembramos os parâmetros necessários para utilização dos comandos e ele auxilia muito com os exemplos didáticos, eu tenho até um, aliás dele haha!!!
Staff Technical Support Engineer
6moMuito bom Fernando, só o nome que me inspira coisas erradas rsss.