How to use curl command with proxy username and password on Linux or Unix

Posted on in Categories , , , , last updated January 17, 2016

My sysadmin provided me the following proxy details:
       IP: 202.54.1.1
       Port: 3128
       Username: foo
       Password: bar

The settings worked perfectly with Google Chrome and Firefox browser. How do I use it with the curl command? How do I tell the curl command to use my proxy settings from Google Chrome browser?

How to delete a single command from history on a Linux, OS X and Unix Bash shell

Posted on in Categories , , , , , , last updated February 7, 2017

I‘m working in Ubuntu bash terminal application and remotely on a RHEL server in cloud platform. I typed the wrong and dangerous command. I no longer wish to remember dangerous command in the history file. How can I remove or delete a single command from bash history file?