Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Friday, June 22, 2018

How do you change branch name in git

step-1: go to codebase
step-2: open terminal
step-3: git branch -m new_branch_name

Tuesday, June 19, 2018

About GIT UI installation & command

GIT UI installation command:
$> sudo apt-get install git-gui

how to use git ui interface?
step-1: open terminal at the codebase
step-2: type: git gui

Other GIT useful command?
1. git branch
2. git status
3. git fetch && git checkout branchname
4. git stash pop

Thursday, June 14, 2018

how do you check running process for specific port?

step-1: sudo netstat -nlp | grep :9071
step-2: enter
tcp6       0      0 :::9071                 :::*                    LISTEN      5713/java 
step-3: kill 9071

note: 9 indicates process will kill forcefully

Saturday, June 9, 2018

How do you save a file & exit in vi or vim editor linux

Save a file & exit

Step-1: press esc
Step-2: press :
Step-3: press x
Step-3: enter

2nd Method:
Step-1: press esc
Step-2: press :
Step-3: press wq
Step-4: enter

Wednesday, June 6, 2018

how do you configure/connect remote desktop from Ubuntu to Ubuntu machine?

  1. press super key(windows) in keyboard
  2. type: remote
  3. select Remmina Remote Desktop Client
  4. choose VNC in dropdown
  5. enter the end user machine IP address
  6. click connect
  7. enter the password of end user machine

how do you check IP address in Ubuntu?

  • open terminal & type any of the below command
  1. > ifconfig
  2. > ip add show 

Saturday, June 2, 2018

what is the short cut to open the terminal in Linux?

step-1: type Ctrl + Alt + t

How do I install .deb (debian) file in unix/linux?

step-1: open the terminal
step-2: go to the directory where downloaded Debian file is there
step-3: hit the following command

> sudo dpkg - i file-name(this will be the file name as it is)

Blueprint for self-improvement

To learn faster: Make the process fun To understand yourself : Write To understand the world better : Read To build deeper connection : Lis...