Posts

Showing posts with the label Terminal

Useful Git Terminal Commands

Delete git local branch https://www.freecodecamp.org/news/how-to-delete-a-git-branch-both-locally-and-remotely/ Switch branch using git checkout git checkout <existing_branch_name> if the branch does not exist, -b option will create a new branch for the same. git checkout -b <new_branch-name> Git pull till a particular commit git pull is nothing but git fetch followed by git merge . So what you can do is git fetch remote example_branch git merge <commit_hash> https://stackoverflow.com/questions/31462683/git-pull-till-a-particular-commit/48728993 https://www.freecodecamp.org/news/git-checkout-remote-branch-tutorial/

Check Bind / named Version - Linux - CentOS

Once the bind package installed in a linux system to serve as DNS/ name server, the version can be identified with following command named -v output BIND 9.9.4-RedHat-9.9.4-74.el7_6.2 (Extended Support Version)

Set proxy for linux terminal connection

Cent OS HTTP proxy can be configured in different ways 1. Terminal Session Configuring HTTP proxy for terminal can be achieved by setting proxy values using terminal. These will be application for a particular session. Setting will be cleared once the session closed from client Export the below variables in terminal for setting proxy with out authentication export http_proxy = 'http://proxyserveraddress:port' export https_proxy = 'https://proxyserveraddress:port' Common port number used for HTTP proxy is 3128.  User can give either proxy ip address or fully qualified domain name. Disable proxy: Unset the variables, we can remove proxy configuration for session. unset http_proxy unset https_proxy