You are on page 1of 1

How to Deploy Linux Virtual Machine in Azure Portal:

Basic Linux Commands

Resource Group : AzureTest


Virtual Network : AzureTest-Vnet
Subnet : AzureTest-Subnet1
Virtual Machine : LinuxMachine

RDP (Windows) : 3389


Putty (Linux) : 22

Putty : To access the Linux Virtual Machine


Putty gen : To change pem key to private key

https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html

Public Ip: connect from internet to virtual machine


ex: 52.142.49.130
Private IP: Virtual machine to virtual machine or service

Pem : Private Enhanced Mail

Basic Linux Commands:


---------------------
sudo su - : user to super user (root/admin)
clear : clear the screen
mkdir : make directory (ex: mkdir azurebatch)
ls : List
ls -al: list all files
cd : change directory (ex: cd azurebatch)
touch : to create file (ex: touch azureclass1.txt)
nano : edit the file (ex: nano azureclass1.txt)
ctrl+s : save
ctrl+x : exit
cat : to see the content (ex: cat azureclass1.txt)
cd .. : change to backward directory (ex: cd ..)
~ : tilder (ex: cd ~)
exit

You might also like